Mise à jour de la liste des fichiers acceptés
This commit is contained in:
parent
7d99979724
commit
c547089631
|
@ -4,7 +4,7 @@ function dir_is_empty($dirname)
|
||||||
{
|
{
|
||||||
if (!is_dir($dirname)) return false;
|
if (!is_dir($dirname)) return false;
|
||||||
foreach (scandir($dirname) as $file) {
|
foreach (scandir($dirname) as $file) {
|
||||||
if (!in_array($file, array('.','..','oci-framagrav.php','oci-uploader.php'))) return false;
|
if (!in_array($file, array('.','..','oci-framagrav.php','oci-framagrav-uploader.php'))) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue