Skip to content
Snippets Groups Projects
Commit de3dfc91 authored by andi's avatar andi
Browse files

fixed index to not include the cache dir (#230)

darcs-hash:20050331155416-9977f-32ef07e8c97584c9d16b4f43504767bdbd217138.gz
parent 0cecf9d5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment