aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-18 08:13:11 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-18 08:13:11 +0200
commit07a192525d19bcafc11bc68d62c30d2d4846faee (patch)
tree935fc872d81db4c853c4c3a92e43231eeee95044 /inc
parentd178419c66fb1950aee7dc8e012c35f12f2a44bc (diff)
downloadwallabag-07a192525d19bcafc11bc68d62c30d2d4846faee.tar.gz
wallabag-07a192525d19bcafc11bc68d62c30d2d4846faee.tar.zst
wallabag-07a192525d19bcafc11bc68d62c30d2d4846faee.zip
Fixed #44 - appel récursif de remove_directory()
Diffstat (limited to 'inc')
-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 }