Permet d'editer un fichier vide nouvellement créé
This commit is contained in:
parent
48248cf5c9
commit
cf01241915
|
@ -795,7 +795,7 @@ class m_bro {
|
||||||
}
|
}
|
||||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||||
$mime = finfo_file($finfo,$absolute);
|
$mime = finfo_file($finfo,$absolute);
|
||||||
if ( substr($mime,0,5)=="text/" || $mime == "application/x-empty") {
|
if ( substr($mime,0,5)=="text/" || $mime == "application/x-empty" || $mime == "inode/x-empty") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue