case insensetive 'can we handle it?' check
git-svn-id: file:///home/shish/svn/shimmie2/trunk@773 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
4553bf00b8
commit
d55f97c81f
@ -44,10 +44,7 @@ class PixelFileHandler extends Extension {
|
||||
|
||||
private function supported_ext($ext) {
|
||||
$exts = array("jpg", "jpeg", "gif", "png");
|
||||
foreach($exts as $supported) {
|
||||
if($ext == $supported) return true;
|
||||
}
|
||||
return false;
|
||||
return array_contains($exts, strtolower($ext));
|
||||
}
|
||||
|
||||
private function create_image_from_data($filename, $metadata) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user