aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_attachments.php
diff options
context:
space:
mode:
authorRichard McGirr <rmcgirr83@gmail.com>2015-04-19 08:07:45 -0400
committerRMcGirr83 <rmcgirr83@gmail.com>2015-10-13 11:52:52 -0400
commitd003b53922624e7e923ed529726a7f89c3ef5afa (patch)
tree3bb0f33302858b63429e9dd4abc0128d1930c3c8 /phpBB/includes/acp/acp_attachments.php
parent1164cc38a243fb2c5b41cc8882956890ff2eecd2 (diff)
downloadforums-d003b53922624e7e923ed529726a7f89c3ef5afa.tar
forums-d003b53922624e7e923ed529726a7f89c3ef5afa.tar.gz
forums-d003b53922624e7e923ed529726a7f89c3ef5afa.tar.bz2
forums-d003b53922624e7e923ed529726a7f89c3ef5afa.tar.xz
forums-d003b53922624e7e923ed529726a7f89c3ef5afa.zip
[ticket/10572] Unguarded includes in acp files
PHPBB3-10572
Diffstat (limited to 'phpBB/includes/acp/acp_attachments.php')
-rw-r--r--phpBB/includes/acp/acp_attachments.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php
index 67fba1094d..4956aab241 100644
--- a/phpBB/includes/acp/acp_attachments.php
+++ b/phpBB/includes/acp/acp_attachments.php
@@ -106,7 +106,10 @@ class acp_attachments
{
case 'attach':
- include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
+ if (!function_exists('get_supported_image_types'))
+ {
+ include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
+ }
$sql = 'SELECT group_name, cat_id
FROM ' . EXTENSION_GROUPS_TABLE . '