mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 11:01:04 +00:00
Fixed #44 - appel récursif de remove_directory()
This commit is contained in:
parent
d178419c66
commit
07a192525d
1 changed files with 1 additions and 2 deletions
|
@ -220,8 +220,7 @@ function remove_directory($directory)
|
|||
if(is_dir($directory)) {
|
||||
$files = array_diff(scandir($directory), array('.','..'));
|
||||
foreach ($files as $file) {
|
||||
// FIXME c'est quoi delTree ??
|
||||
(is_dir("$directory/$file")) ? delTree("$directory/$file") : unlink("$directory/$file");
|
||||
(is_dir("$directory/$file")) ? remove_directory("$directory/$file") : unlink("$directory/$file");
|
||||
}
|
||||
return rmdir($directory);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue