aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-04-21 12:18:36 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-04-21 12:18:36 +0000
commit76250ca55a20c49b3ff26424276b5e7cba3b5ec0 (patch)
tree9c575b1966041b00dc47faac602d42edb5ba1e79 /phpBB/includes
parent0bb09825c8714338d03f861e83fa811c1dd5e4af (diff)
downloadforums-76250ca55a20c49b3ff26424276b5e7cba3b5ec0.tar
forums-76250ca55a20c49b3ff26424276b5e7cba3b5ec0.tar.gz
forums-76250ca55a20c49b3ff26424276b5e7cba3b5ec0.tar.bz2
forums-76250ca55a20c49b3ff26424276b5e7cba3b5ec0.tar.xz
forums-76250ca55a20c49b3ff26424276b5e7cba3b5ec0.zip
#25925
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8517 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 2f12732e8b..709516a2b0 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -524,6 +524,8 @@ function get_supported_image_types($type = false)
if ($type !== false)
{
+ // Type is one of the IMAGETYPE constants - it is fetched from getimagesize()
+ // We do not use the constants here, because some were not available in PHP 4.3.x
switch ($type)
{
// GIF
@@ -545,8 +547,7 @@ function get_supported_image_types($type = false)
$new_type = ($format & IMG_PNG) ? IMG_PNG : false;
break;
- // BMP, WBMP
- case 6:
+ // WBMP
case 15:
$new_type = ($format & IMG_WBMP) ? IMG_WBMP : false;
break;