aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-09-12 14:48:09 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-09-12 14:48:09 +0200
commitc0d645c319b0bc7c83181d153c026cba052f9306 (patch)
treedce526ed92858a75667adac52e6886aecc5f9dca /phpBB/includes/functions_posting.php
parent26c31704cc4a34cc5297c1b89c71388518c81ab1 (diff)
parent0edcf575a097b9cd0ad5f264da9874ef81c9dadb (diff)
downloadforums-c0d645c319b0bc7c83181d153c026cba052f9306.tar
forums-c0d645c319b0bc7c83181d153c026cba052f9306.tar.gz
forums-c0d645c319b0bc7c83181d153c026cba052f9306.tar.bz2
forums-c0d645c319b0bc7c83181d153c026cba052f9306.tar.xz
forums-c0d645c319b0bc7c83181d153c026cba052f9306.zip
Merge branch 'ticket/bantu/7252' into develop
* ticket/bantu/7252: [ticket/7252] Align array keys and values to "=>". [ticket/7252] Replace magic values with PHP constants. [ticket/7252] Replace magic values with PHP constants.
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 5e25648eb8..6a53213230 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -564,26 +564,27 @@ function get_supported_image_types($type = false)
switch ($type)
{
// GIF
- case 1:
+ case IMAGETYPE_GIF:
$new_type = ($format & IMG_GIF) ? IMG_GIF : false;
break;
// JPG, JPC, JP2
- case 2:
- case 9:
- case 10:
- case 11:
- case 12:
+ case IMAGETYPE_JPEG:
+ case IMAGETYPE_JPC:
+ case IMAGETYPE_JPEG2000:
+ case IMAGETYPE_JP2:
+ case IMAGETYPE_JPX:
+ case IMAGETYPE_JB2:
$new_type = ($format & IMG_JPG) ? IMG_JPG : false;
break;
// PNG
- case 3:
+ case IMAGETYPE_PNG:
$new_type = ($format & IMG_PNG) ? IMG_PNG : false;
break;
// WBMP
- case 15:
+ case IMAGETYPE_WBMP:
$new_type = ($format & IMG_WBMP) ? IMG_WBMP : false;
break;
}