diff options
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 6 |
1 files changed, 4 insertions, 2 deletions
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 = '<html><head><title>' . t('$Projectname') . '</title></head><body style="margin: 0; padding: 0; border: none;" ><iframe src="' . z_root() . '/' . $frontpage . '" width="100%" height="100%" style="margin: 0; padding: 0; border: none;" ></iframe></body></html>'; + $o = '<html><head><title>' . t('$Projectname') . '</title></head><body style="margin: 0; padding: 0; border: none;" ><iframe src="' . $frontpage . '" width="100%" height="100%" style="margin: 0; padding: 0; border: none;" ></iframe></body></html>'; echo $o; killme(); } - goaway(z_root() . '/' . $frontpage); + goaway($frontpage); } $sitename = get_config('system','sitename'); |