wez Sun Sep 18 10:04:28 2005 EDT
Modified files:
/livedocs mkindex.php
Log:
ignore all files beginning with a ., and not just the magic dirs.
rationale: no point trying to index vim .swp files, as that just confuses
things.
http://cvs.php.net/diff.php/livedocs/mkindex.php?r1=1.46&r2=1.47&ty=u
Index: livedocs/mkindex.php
diff -u livedocs/mkindex.php:1.46 livedocs/mkindex.php:1.47
--- livedocs/mkindex.php:1.46 Sat Aug 20 17:50:38 2005
+++ livedocs/mkindex.php Sun Sep 18 10:04:27 2005
@@ -19,7 +19,7 @@
// | construct an index |
// +----------------------------------------------------------------------+
//
-// $Id: mkindex.php,v 1.46 2005/08/20 21:50:38 edink Exp $
+// $Id: mkindex.php,v 1.47 2005/09/18 14:04:27 wez Exp $
/* just to be on the safe side */
@@ -319,7 +319,7 @@
}
while (($f = readdir($d)) !== false) {
- if ($f == 'CVS' || $f == '.' || $f == '..') {
+ if ($f == 'CVS' || $f{0} == '.') {
continue;
}
$full = $dirname . DIRECTORY_SEPARATOR . $f;