mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-23 07:15:50 -04:00
Revert to using IMAGETYPE_XXX constants (at least for now)
This commit is contained in:
@@ -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("gif", "jpg", "jpeg", "png"))) {
|
||||
!in_array($image_info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG))) {
|
||||
message::error(t("Unable to identify this image file"));
|
||||
@unlink($file);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user