array_contains -> in_array

This commit is contained in:
Shish Moom
2009-06-05 12:53:00 -07:00
parent de0164647e
commit f77c6e64cd
8 changed files with 9 additions and 18 deletions

View File

@ -41,7 +41,7 @@ class FlashFileHandler extends SimpleExtension {
private function supported_ext($ext) {
$exts = array("swf");
return array_contains($exts, strtolower($ext));
return in_array(strtolower($ext), $exts);
}
private function create_image_from_data($filename, $metadata) {
@ -124,7 +124,7 @@ class FlashFileHandler extends SimpleExtension {
$fp = fopen($file, "r");
$head = fread($fp, 3);
fclose($fp);
if(!array_contains(array("CWS", "FWS"), $head)) return false;
if(!in_array($head, array("CWS", "FWS"))) return false;
return true;
}