aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/admin_attachments.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-01-02 19:12:14 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-01-02 19:12:14 +0000
commit52f17c49d7209b686c4733b8b3908ec4e9ca4b06 (patch)
tree0ffba489fde36d2e90e9761507de8672020450d1 /phpBB/adm/admin_attachments.php
parent9c4b9d9dae63367410f152e1250b3ace48aaf0de (diff)
downloadforums-52f17c49d7209b686c4733b8b3908ec4e9ca4b06.tar
forums-52f17c49d7209b686c4733b8b3908ec4e9ca4b06.tar.gz
forums-52f17c49d7209b686c4733b8b3908ec4e9ca4b06.tar.bz2
forums-52f17c49d7209b686c4733b8b3908ec4e9ca4b06.tar.xz
forums-52f17c49d7209b686c4733b8b3908ec4e9ca4b06.zip
- make use of new get_supported_image_types format
- added mysql 4.1.x support for database size git-svn-id: file:///svn/phpbb/trunk@5040 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/admin_attachments.php')
-rw-r--r--phpBB/adm/admin_attachments.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/adm/admin_attachments.php b/phpBB/adm/admin_attachments.php
index cd90fd7ef0..2797fc29d3 100644
--- a/phpBB/adm/admin_attachments.php
+++ b/phpBB/adm/admin_attachments.php
@@ -578,8 +578,10 @@ if ($mode == 'attach')
</tr>
<?php
+ $supported_types = get_supported_image_types();
+
// Check Thumbnail Support
- if (!$new['img_imagick'] && !count(get_supported_image_types()))
+ if (!$new['img_imagick'] && (!isset($supported_types['format']) || !sizeof($supported_types['format'])))
{
$new['img_create_thumbnail'] = '0';
}