Code

Updated clean smarty compile dir function.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 08:50:08 +0000 (08:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 08:50:08 +0000 (08:50 +0000)
-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

index 60dcd80b7a9005cdf7a32a9af6d2c319222271f5..8307b6e63ee5c6996ef2a3821aad4484ccd1dec5 100644 (file)
@@ -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);