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) {
|
private function supported_ext($ext) {
|
||||||
$exts = array("jpg", "jpeg", "gif", "png");
|
$exts = array("jpg", "jpeg", "gif", "png");
|
||||||
foreach($exts as $supported) {
|
return array_contains($exts, strtolower($ext));
|
||||||
if($ext == $supported) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function create_image_from_data($filename, $metadata) {
|
private function create_image_from_data($filename, $metadata) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user