Unreported: Just global the config, rather then redefining it.

This commit is contained in:
Ice
2008-04-23 15:37:38 +00:00
parent 3b63e2fdaf
commit 046a6cf110

View File

@@ -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();
@@ -119,8 +119,6 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
}
}
$portal_config = obtain_portal_config();
switch( $type )
{
case "announcements":