From 595c2a5e9d1288b1d5a1ee8c98368dc39b25f7de Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Fri, 31 May 2013 03:46:52 +0100 Subject: Lets not require files if we don't need them. --- mod/home.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/home.php b/mod/home.php index c074f9db5..86d489853 100644 --- a/mod/home.php +++ b/mod/home.php @@ -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'; -- cgit v1.2.3