diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-24 01:24:11 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-24 01:24:11 +0000 |
commit | 9bba87ddc53a2e220642a7c33e1f6112d989fe60 (patch) | |
tree | be770c228aee9ec450a957b62a03d00d3205fbef /modules | |
parent | b40f25cbed921970c7eb854910de76cad2624c1d (diff) |
remove the extension and just use the IMAGETYPE_xxx constants
Diffstat (limited to 'modules')
-rw-r--r-- | modules/watermark/controllers/admin_watermarks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/watermark/controllers/admin_watermarks.php b/modules/watermark/controllers/admin_watermarks.php index 691040ea..54ee71b5 100644 --- a/modules/watermark/controllers/admin_watermarks.php +++ b/modules/watermark/controllers/admin_watermarks.php @@ -99,7 +99,7 @@ class Admin_Watermarks_Controller extends Admin_Controller { $name = preg_replace("/uploadfile-[^-]+-(.*)/", '$1', $pathinfo["basename"]); if (!($image_info = getimagesize($file)) || - !in_array($image_info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, "jpg"))) { + !in_array($image_info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG))) { message::error(t("Unable to identify this image file")); @unlink($file); return; |