diff options
author | kasimi <mail@kasimi.net> | 2019-01-26 22:29:54 +0100 |
---|---|---|
committer | kasimi <mail@kasimi.net> | 2019-01-26 22:29:54 +0100 |
commit | 75007697ae55632200eb7f2c6579026e23fe3d7d (patch) | |
tree | f396379f789bb8adc869154b5c75aa270aab4dbe /phpBB/includes/mcp/mcp_topic.php | |
parent | 713c996a0839664570ba24940e6a039ceee654ff (diff) | |
download | forums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar forums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar.gz forums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar.bz2 forums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar.xz forums-75007697ae55632200eb7f2c6579026e23fe3d7d.zip |
[ticket/15954] Add safeguards to include() calls
PHPBB3-15954
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 9c63245982..68a65aafdd 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -93,7 +93,11 @@ function mcp_topic_view($id, $mode, $action) // Restore or pprove posts? if (($action == 'restore' || $action == 'approve') && $auth->acl_get('m_approve', $topic_info['forum_id'])) { - include($phpbb_root_path . 'includes/mcp/mcp_queue.' . $phpEx); + if (!class_exists('mcp_queue')) + { + include($phpbb_root_path . 'includes/mcp/mcp_queue.' . $phpEx); + } + include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx); include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx); |