missed this

This commit is contained in:
friendica 2013-12-14 17:06:50 -08:00
parent d14e2db6b4
commit db11f5af78

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists('home_init')) {
function home_init(&$a) { function home_init(&$a) {
$ret = array(); $ret = array();
@ -20,10 +20,10 @@ function home_init(&$a) {
goaway(z_root() . '/new_channel'); goaway(z_root() . '/new_channel');
} }
} }}
if(! function_exists('home_content')) {
function home_content(&$a) { function home_content(&$a) {
$o = ''; $o = '';
@ -74,8 +74,10 @@ require_once('include/conversation.php');
// If there's no site channel specified, fallback to the old behaviour // 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>'; else { $o .= '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
if(file_exists('home.html')) if(file_exists('home.html')) {
$o .= file_get_contents('home.html'); $o .= file_get_contents('home.html');
$a->page['template'] = 'full';
}
} }
if (!$a->config['system']['no_login_on_homepage']) if (!$a->config['system']['no_login_on_homepage'])
@ -85,4 +87,4 @@ require_once('include/conversation.php');
return $o; return $o;
} }
}