From 046a6cf110caaa9dc51459fe648f9786860c87b0 Mon Sep 17 00:00:00 2001 From: Ice Date: Wed, 23 Apr 2008 15:37:38 +0000 Subject: [PATCH] Unreported: Just global the config, rather then redefining it. --- root/portal/includes/functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/root/portal/includes/functions.php b/root/portal/includes/functions.php index e9a70a45..6ab7c12b 100644 --- a/root/portal/includes/functions.php +++ b/root/portal/includes/functions.php @@ -73,7 +73,7 @@ include($phpbb_root_path . 'includes/message_parser.'.$phpEx); // fetch post for news & announce function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_length, $time, $type, $start = 0) { - global $db, $phpbb_root_path, $auth, $user, $bbcode_bitfield, $bbcode; + global $db, $phpbb_root_path, $auth, $user, $bbcode_bitfield, $bbcode, $portal_config; $posts = array(); @@ -118,8 +118,6 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le $str_where .= "t.forum_id <> $acc_id AND "; } } - -$portal_config = obtain_portal_config(); switch( $type ) {