mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-30 04:42:19 -05:00
Fixed #44 - appel récursif de remove_directory()
This commit is contained in:
parent
d178419c66
commit
07a192525d
@ -220,8 +220,7 @@ function remove_directory($directory)
|
|||||||
if(is_dir($directory)) {
|
if(is_dir($directory)) {
|
||||||
$files = array_diff(scandir($directory), array('.','..'));
|
$files = array_diff(scandir($directory), array('.','..'));
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
// FIXME c'est quoi delTree ??
|
(is_dir("$directory/$file")) ? remove_directory("$directory/$file") : unlink("$directory/$file");
|
||||||
(is_dir("$directory/$file")) ? delTree("$directory/$file") : unlink("$directory/$file");
|
|
||||||
}
|
}
|
||||||
return rmdir($directory);
|
return rmdir($directory);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user