Code

renamed scandir_php4 to scan_directory
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Jun 2005 08:22:53 +0000 (08:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Jun 2005 08:22:53 +0000 (08:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@710 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index b91a3068ea0d55fab603279598062262159634ae..54ecb36a4bab180017c64c866d8b30947bd5bfb7 100644 (file)
@@ -1635,7 +1635,7 @@ function rmdirRecursive($path, $followLinks=false) {
   return rmdir($path);
 }
 
-function scandir_php4($path,$sort_desc=false)
+function scan_directory($path,$sort_desc=false)
 {
 $ret = false;
 
@@ -1685,7 +1685,7 @@ function clean_smarty_compile_dir($directory)
       # contents should match the revision number
       if(!compare_revision($revision_file, $svn_revision)){
         // If revision differs, clean compile directory
-        foreach(scandir_php4($directory) as $file) {
+        foreach(scan_directory($directory) as $file) {
           if( is_file($directory."/".$file) &&
               is_writable($directory."/".$file)) {
               // delete file