From f5618feb73343f0a120a809116c443630d70a87c Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 13 Mar 2015 23:33:49 +0100 Subject: fix #1154 --- install/install_functions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'install/install_functions.php') diff --git a/install/install_functions.php b/install/install_functions.php index 3cfe13fb..a40db373 100644 --- a/install/install_functions.php +++ b/install/install_functions.php @@ -78,10 +78,12 @@ function pdoDrivers() { * Here in case of .gitignore files */ -function delTree($dir, $withdirectory="true") { - $files = array_diff(scandir($dir), array('.','..')); - foreach ($files as $file) { - (is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file"); +function delTree($dir, $withdirectory=true, $hiddenfiles = true) { + if ($hiddenfiles) { + $files = array_diff(scandir($dir), array('.','..')); + foreach ($files as $file) { + (is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file"); + } } if ($withdirectory) { return rmdir($dir); -- cgit v1.2.3 From 02d4ab1a60eb48f00ad60ec48d02b65509a27e56 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 9 May 2015 18:30:28 +0200 Subject: fix sessions lasting through reinstallations, they are now deleted --- install/install_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/install_functions.php') diff --git a/install/install_functions.php b/install/install_functions.php index a40db373..a3bf3661 100644 --- a/install/install_functions.php +++ b/install/install_functions.php @@ -110,4 +110,4 @@ function executeQuery($handle, $sql, $params) { } } -?> \ No newline at end of file +?> -- cgit v1.2.3