diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-09-17 09:11:48 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-09-17 09:11:48 +0000 |
commit | 8906e07d414a2fa379e3aba0b96b4f3ea468699f (patch) | |
tree | 861c223dc014c75aecd107501b46c831296df4b1 /phpBB/includes/functions.php | |
parent | f8c8d23a726df53c420268fd5c4d7aec468a107b (diff) | |
download | forums-8906e07d414a2fa379e3aba0b96b4f3ea468699f.tar forums-8906e07d414a2fa379e3aba0b96b4f3ea468699f.tar.gz forums-8906e07d414a2fa379e3aba0b96b4f3ea468699f.tar.bz2 forums-8906e07d414a2fa379e3aba0b96b4f3ea468699f.tar.xz forums-8906e07d414a2fa379e3aba0b96b4f3ea468699f.zip |
- extensions_allowed changed a bit.
git-svn-id: file:///svn/phpbb/trunk@4986 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6589f804bd..1d1c32119b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1341,11 +1341,9 @@ function parse_inline_attachments(&$text, &$attachments, &$update_count, $forum_ } // Check if extension is allowed to be posted within forum X (forum_id 0 == private messaging) -function extension_allowed($forum_id, $extension) +function extension_allowed($forum_id, $extension, &$extensions) { - global $extensions; - - if (!isset($extensions) || !is_array($extensions)) + if (!sizeof($extensions)) { $extensions = array(); obtain_attach_extensions($extensions); |