diff options
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php index 3c473daee..d8fe75122 100644 --- a/inc/search.php +++ b/inc/search.php @@ -149,7 +149,7 @@ function search_index(&$data,$base,$file,$type,$lvl,$opts){ if($type == 'd' && !preg_match('#^'.$file.'(/|$)#','/'.$opts['ns'])){ //add but don't recurse $return = false; - }elseif($type == 'f' && !preg_match('#\.txt$#',$file)){ + }elseif($type == 'f' && ($opts['nofiles'] || !preg_match('#\.txt$#',$file))){ //don't add return false; } |