summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-03-31 17:54:16 +0200
committerandi <andi@splitbrain.org>2005-03-31 17:54:16 +0200
commitde3dfc910ca799f2c130c4d36d516dc7139b4e61 (patch)
tree021ede8f896b23f35bcd92bfbaf2acf921d7adb4
parent0cecf9d507451346a32ddf45a85b425784fbb0f8 (diff)
downloadrpg-de3dfc910ca799f2c130c4d36d516dc7139b4e61.tar.gz
rpg-de3dfc910ca799f2c130c4d36d516dc7139b4e61.tar.bz2
fixed index to not include the cache dir (#230)
darcs-hash:20050331155416-9977f-32ef07e8c97584c9d16b4f43504767bdbd217138.gz
-rw-r--r--inc/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php
index d66d51af3..1c688c968 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -25,7 +25,7 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1){
$dh = @opendir($base.'/'.$dir);
if(!$dh) return;
while(($file = readdir($dh)) !== false){
- if(preg_match('/^\./',$file)) continue; //skip hidden files and upper dirs
+ if(preg_match('/^[\._]/',$file)) continue; //skip hidden files and upper dirs
if(is_dir($base.'/'.$dir.'/'.$file)){
$dirs[] = $dir.'/'.$file;
continue;