diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-07-11 22:16:45 -0400 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-07-11 22:16:45 -0400 |
commit | 53c0647aed4a4995d3ae00ed775ff563eaa61b9a (patch) | |
tree | f3416f9a226cefe1b12231adb8cbd744f5063a6b /phpBB | |
parent | 54012dfb2f11e275e65078689a554f865562041e (diff) | |
download | forums-53c0647aed4a4995d3ae00ed775ff563eaa61b9a.tar forums-53c0647aed4a4995d3ae00ed775ff563eaa61b9a.tar.gz forums-53c0647aed4a4995d3ae00ed775ff563eaa61b9a.tar.bz2 forums-53c0647aed4a4995d3ae00ed775ff563eaa61b9a.tar.xz forums-53c0647aed4a4995d3ae00ed775ff563eaa61b9a.zip |
[ticket/9657] Use include instead of include_once
PHPBB3-9657
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 514d7bc4ee..ac3391c294 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -108,7 +108,10 @@ class mcp_queue return; } - include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx); + if (!class_exists('messenger')) + { + include($phpbb_root_path . 'includes/functions_messenger.' . $phpEx); + } if (!empty($topic_id_list)) { @@ -1042,7 +1045,7 @@ class mcp_queue { if (!function_exists('delete_posts')) { - include_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx); + include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); } // We do not check for permissions here, because the moderator allowed approval/disapproval should be allowed to delete the disapproved posts @@ -1160,7 +1163,10 @@ class mcp_queue } else { - include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx); + if (!function_exists('display_reasons')) + { + include($phpbb_root_path . 'includes/functions_display.' . $phpEx); + } $show_notify = false; |