Unreported: Just global the config, rather then redefining it.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user