Mise à jour de la liste des fichiers acceptés

This commit is contained in:
Matthieu Patout 2021-02-02 12:50:48 +01:00
parent 7d99979724
commit c547089631
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }