goba            Sat Dec 15 12:20:38 2001 EDT

  Modified files:              
    /phpdoc/scripts     entities.php 
  Log:
  Leave out all supplemental files from testing (eg. Translators,
  and .html files) and only test .xml files
  
  
Index: phpdoc/scripts/entities.php
diff -u phpdoc/scripts/entities.php:1.3 phpdoc/scripts/entities.php:1.4
--- phpdoc/scripts/entities.php:1.3     Sat Dec 15 12:14:41 2001
+++ phpdoc/scripts/entities.php Sat Dec 15 12:20:37 2001
@@ -96,12 +96,15 @@
     // Open and traverse the directory
     $handle = @opendir($dir);
     while ($file = @readdir($handle)) {
-      if (preg_match("/^\.{1,2}/",$file) || $file == 'CVS')
-        continue;
-
-      // Collect files and directories
-      if (is_dir($dir.$file)) { $directories[] = $file; }
-      else { $files[] = $file; }
+      
+      // Collect directories and XML files
+      if ($file != 'CVS' && $file != '.' &&
+          $file != '..' && is_dir($dir.$file)) {
+        $directories[] = $file;
+      }
+      elseif (strstr($file, ".xml")) {
+        $files[] = $file;
+      }
 
     }
     @closedir($handle);


Reply via email to