From 07a192525d19bcafc11bc68d62c30d2d4846faee Mon Sep 17 00:00:00 2001 From: nicosomb Date: Thu, 18 Apr 2013 08:13:11 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20#44=20-=20appel=20r=C3=A9cursif=20de=20?= =?UTF-8?q?remove=5Fdirectory()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index 37abafd..68c3612 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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); }