Lets not require files if we don't need them.

This commit is contained in:
Thomas Willingham 2013-05-31 03:46:52 +01:00
parent bfb6f20ef2
commit 595c2a5e9d

View File

@ -33,12 +33,13 @@ function home_content(&$a) {
if(x($_SESSION,'mobile-theme'))
unset($_SESSION['mobile-theme']);
$channel_address = get_config("system", "site-channel" );
if ($channel_address){
require_once('include/items.php');
require_once('include/conversation.php');
$channel_address = get_config("system", "site-channel" );
if ($channel_address){
//We can do better, but until we figure out auto-linkification, let's keep things simple
$page_id = 'home';