From: hickert Date: Tue, 14 Sep 2010 06:28:27 +0000 (+0000) Subject: Do not remove directories, just files while cleaning up the smarty compile dir. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1d8f574b6445ef703b8508b88818e422c1f4ab3;p=gosa.git Do not remove directories, just files while cleaning up the smarty compile dir. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19652 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 7dceb91c9..6246326d9 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2421,10 +2421,6 @@ function clean_smarty_compile_dir($directory) msg_dialog::display(_("Internal error"), sprintf(_("File '%s' could not be deleted."), $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