mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
use FILEINFO_MIME_TYPE instead of FILEINFO_MIME (Closes Bug #209)
This commit is contained in:
parent
fa43001824
commit
3d10f91026
|
@ -145,7 +145,7 @@ $user = $dms->getUser(1);
|
|||
|
||||
if(is_readable($filename)) {
|
||||
if(filesize($filename)) {
|
||||
$finfo = new finfo(FILEINFO_MIME);
|
||||
$finfo = new finfo(FILEINFO_MIME_TYPE);
|
||||
if(!$mimetype) {
|
||||
$mimetype = $finfo->file($filename);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user