Code

Do not remove directories, just files while cleaning up the smarty compile dir.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 06:28:27 +0000 (06:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 06:28:27 +0000 (06:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19652 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 7dceb91c9beb2acb9bde333a8d247e44aabb742c..6246326d944bf1f65d959d2345a532dc8ce6fafb 100644 (file)
@@ -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