From: hickert Date: Mon, 13 Sep 2010 08:50:08 +0000 (+0000) Subject: Updated clean smarty compile dir function. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=40db3e95a1d2e4724fbcb110a3a8f3b17436e4ea;p=gosa.git 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 --- 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);