s/mime_content_type/getMimeType/, fixes #633
This commit is contained in:
parent
15f0847434
commit
c0699ce236
2 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
Reference in a new issue