cvs: phpdoc /scripts entities.php

From: Date: Sat, 15 Dec 2001 17:20:38 +0000
Subject: cvs: phpdoc /scripts entities.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969339824@lists.php.net to get a copy of this message
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);

« previous php.doc (#969339824) next »