s/mime_content_type/getMimeType/, fixes #633

This commit is contained in:
Shish 2018-11-05 19:51:44 +00:00
parent 15f0847434
commit c0699ce236
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ class MP3FileHandler extends DataHandlerExtension {
$success = FALSE;
if (file_exists($tmpname)) {
$mimeType = mime_content_type($tmpname);
$mimeType = getMimeType($tmpname);
$success = ($mimeType == 'audio/mpeg');
}

View file

@ -133,7 +133,7 @@ class VideoFileHandler extends DataHandlerExtension {
$image->width = $size[0];
$image->height = $size[1];
switch (mime_content_type($filename)) {
switch (getMimeType($filename)) {
case "video/webm":
$image->ext = "webm";
break;
@ -167,7 +167,7 @@ class VideoFileHandler extends DataHandlerExtension {
protected function check_contents(string $tmpname): bool {
$success = FALSE;
if (file_exists($tmpname)) {
$mimeType = mime_content_type($tmpname);
$mimeType = getMimeType($tmpname);
$success = in_array($mimeType, [
'video/webm',