aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-14 17:06:50 -0800
committerfriendica <info@friendica.com>2013-12-14 17:06:50 -0800
commitdb11f5af78e86278463e40a02cde841b5c01208c (patch)
tree84c0ab20880566fc2ca88dfca6550e2733f6f055
parentd14e2db6b436b3190db0c506cf5f907bd1a7fcc9 (diff)
downloadvolse-hubzilla-db11f5af78e86278463e40a02cde841b5c01208c.tar.gz
volse-hubzilla-db11f5af78e86278463e40a02cde841b5c01208c.tar.bz2
volse-hubzilla-db11f5af78e86278463e40a02cde841b5c01208c.zip
missed this
-rw-r--r--mod/home.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/mod/home.php b/mod/home.php
index 3f862b596..2b8e83c30 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -1,6 +1,6 @@
<?php
-
+if(! function_exists('home_init')) {
function home_init(&$a) {
$ret = array();
@@ -20,10 +20,10 @@ function home_init(&$a) {
goaway(z_root() . '/new_channel');
}
-}
-
+}}
+if(! function_exists('home_content')) {
function home_content(&$a) {
$o = '';
@@ -74,9 +74,11 @@ require_once('include/conversation.php');
// If there's no site channel specified, fallback to the old behaviour
else { $o .= '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
- if(file_exists('home.html'))
- $o .= file_get_contents('home.html');
-}
+ if(file_exists('home.html')) {
+ $o .= file_get_contents('home.html');
+ $a->page['template'] = 'full';
+ }
+ }
if (!$a->config['system']['no_login_on_homepage'])
$o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
@@ -85,4 +87,4 @@ require_once('include/conversation.php');
return $o;
}
-
+}