mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Changing File->info() to File->mime() in Validation::mimeType()
This commit is contained in:
parent
e3a6e9e169
commit
fea4ae6523
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue