aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-17 16:33:28 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-17 16:33:28 -0700
commitb6c765c9dcbbc85d9a71af3f63d9e5ee77355c02 (patch)
tree7d7cfa5d6c6c0df5fc1e83d2e3a59a290f523204 /mod/home.php
parent45bd81fe8c2664b5a261d44fad12328b19ab0257 (diff)
downloadvolse-hubzilla-b6c765c9dcbbc85d9a71af3f63d9e5ee77355c02.tar.gz
volse-hubzilla-b6c765c9dcbbc85d9a71af3f63d9e5ee77355c02.tar.bz2
volse-hubzilla-b6c765c9dcbbc85d9a71af3f63d9e5ee77355c02.zip
allow homepage content to be a full redirect
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php6
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');