Code

skipping . .. when deleting smarty spool dir
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jul 2005 05:50:52 +0000 (05:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jul 2005 05:50:52 +0000 (05:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1016 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 0501442da50ce9c543563e2d8dac098ddd708ca6..27f188dcb96f64629b80b85fc83000a51326f10f 100644 (file)
@@ -1646,6 +1646,7 @@ function clean_smarty_compile_dir($directory)
       if(!compare_revision($revision_file, $svn_revision)){
         // If revision differs, clean compile directory
         foreach(scan_directory($directory) as $file) {
+          if(($file==".")||($file=="..")) continue;
           if( is_file($directory."/".$file) &&
               is_writable($directory."/".$file)) {
               // delete file