aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--inc/functions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 37abafd4..68c3612f 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -220,8 +220,7 @@ function remove_directory($directory)
220 if(is_dir($directory)) { 220 if(is_dir($directory)) {
221 $files = array_diff(scandir($directory), array('.','..')); 221 $files = array_diff(scandir($directory), array('.','..'));
222 foreach ($files as $file) { 222 foreach ($files as $file) {
223 // FIXME c'est quoi delTree ?? 223 (is_dir("$directory/$file")) ? remove_directory("$directory/$file") : unlink("$directory/$file");
224 (is_dir("$directory/$file")) ? delTree("$directory/$file") : unlink("$directory/$file");
225 } 224 }
226 return rmdir($directory); 225 return rmdir($directory);
227 } 226 }