From: hickert Date: Thu, 28 Jul 2005 05:50:52 +0000 (+0000) Subject: skipping . .. when deleting smarty spool dir X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec7128e5d44975b2a24d5621da6db0dd86bde3ef;p=gosa.git skipping . .. when deleting smarty spool dir git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1016 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 0501442da..27f188dcb 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -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