aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php12
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');