summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-11-03 16:08:50 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-11-03 16:08:50 +0100
commitee7b5a6202608290324cb28c5f555ed797f24fc4 (patch)
treef9b9201efbc4a9baf2593ec3c0ca09815cd656e7 /inc/search.php
parentfd0056c33dde9e765a3e11b0c490643ed1b23c8f (diff)
downloadrpg-ee7b5a6202608290324cb28c5f555ed797f24fc4.tar.gz
rpg-ee7b5a6202608290324cb28c5f555ed797f24fc4.tar.bz2
don't show .txt files as medianamespaces #963
darcs-hash:20061103150850-7ad00-9b6936efb8dd47eb366e5cd34a3149f4d81caa14.gz
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php2
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;
}