diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-07 18:15:26 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-07 18:15:26 -0700 |
commit | 0537ff1e4a220f08e708c7edfb53b26622d3313f (patch) | |
tree | 065442fffef8fa5dbedc6c77fb19ecdca3306408 /mod/home.php | |
parent | 65bea5e02c70dd9b08f4903e958f18efa7bff365 (diff) | |
download | volse-hubzilla-0537ff1e4a220f08e708c7edfb53b26622d3313f.tar.gz volse-hubzilla-0537ff1e4a220f08e708c7edfb53b26622d3313f.tar.bz2 volse-hubzilla-0537ff1e4a220f08e708c7edfb53b26622d3313f.zip |
frontpage tweaks
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/home.php b/mod/home.php index 89c6596c2..9f1c77131 100644 --- a/mod/home.php +++ b/mod/home.php @@ -49,16 +49,18 @@ function home_content(&$a, $update = 0, $load = false) { if($o) return $o; - $startpage = get_config('system','frontpage'); - if($startpage) { - if(strpos($startpage,'include:') !== false) { - $file = trim(str_replace('include:' , '', $startpage)); + $frontpage = get_config('system','frontpage'); + if($frontpage) { + if(strpos($frontpage,'include:') !== false) { + $file = trim(str_replace('include:' , '', $frontpage)); if(file_exists($file)) { + $a->page['template'] = 'full'; + $a->page['title'] = t('$Projectname'); $o .= file_get_contents($file); return $o; } } - goaway($z_root() . '/' . $startpage); + goaway(z_root() . '/' . $frontpage); } $sitename = get_config('system','sitename'); |