Changing File->info() to File->mime() in Validation::mimeType()

This commit is contained in:
Florian Krämer 2012-05-28 00:48:22 +02:00
parent e3a6e9e169
commit fea4ae6523

View file

@ -872,9 +872,9 @@ class Validation {
}
$File = new File($check);
$info = $File->info();
$mime = $File->mime();
return in_array($info['mime'], $mimeTypes);
return in_array($mime, $mimeTypes);
}
/**