From 40db3e95a1d2e4724fbcb110a3a8f3b17436e4ea Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 13 Sep 2010 08:50:08 +0000 Subject: [PATCH] Updated clean smarty compile dir function. -The default path is /var/spool/gosa, this path is also used for statistic databases and some other stuff. The clean rules removed everything including directories - this broke the statistics database files. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19615 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 60dcd80b7..8307b6e63 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2346,11 +2346,7 @@ function clean_smarty_compile_dir($directory) msg_dialog::display(_("Internal error"), sprintf(_("File %s cannot be deleted!"), bold($directory."/".$file)), ERROR_DIALOG); // This should never be reached } - } elseif(is_dir($directory."/".$file) && - is_writable($directory."/".$file)) { - // Just recursively delete it - rmdirRecursive($directory."/".$file); - } + } } // We should now create a fresh revision file clean_smarty_compile_dir($directory); -- 2.30.2