From b6c765c9dcbbc85d9a71af3f63d9e5ee77355c02 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 17 Oct 2015 16:33:28 -0700 Subject: allow homepage content to be a full redirect --- mod/home.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/home.php b/mod/home.php index 3091be3a1..b698d93b6 100644 --- a/mod/home.php +++ b/mod/home.php @@ -60,12 +60,14 @@ function home_content(&$a, $update = 0, $load = false) { return $o; } } + if(strpos($frontpage,'http') !== 0) + $frontpage = z_root() . '/' . $frontpage; if(intval(get_config('system','mirror_frontpage'))) { - $o = '' . t('$Projectname') . ''; + $o = '' . t('$Projectname') . ''; echo $o; killme(); } - goaway(z_root() . '/' . $frontpage); + goaway($frontpage); } $sitename = get_config('system','sitename'); -- cgit v1.2.3