From: Janusz Dobrowolski Date: Sat, 24 Oct 2009 13:20:16 +0000 (+0000) Subject: CVS folders excluded from flush_dir to avoid unwanted messages in error log on devel... X-Git-Tag: v2.4.2~19^2~1081 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=8f53e28de3882ce22b054dc039e78ac9b270d588;p=fa-stable.git CVS folders excluded from flush_dir to avoid unwanted messages in error log on devel boxes. --- diff --git a/includes/main.inc b/includes/main.inc index 23a38227..fcb8b99a 100644 --- a/includes/main.inc +++ b/includes/main.inc @@ -61,7 +61,7 @@ function flush_dir($path, $wipe = false) { $dir = opendir($path); while(false !== ($fname = readdir($dir))) { - if($fname=='.' || $fname=='..' || (!$wipe && $fname=='index.php')) continue; + if($fname=='.' || $fname=='..' || $fname=='CVS' || (!$wipe && $fname=='index.php')) continue; if(is_dir($path.'/'.$fname)) { flush_dir($path.'/'.$fname, $wipe); if ($wipe) @rmdir($path.'/'.$fname);