diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-10-26 21:44:30 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-10-26 21:44:30 +0200 |
commit | e63d421b53a17172465c31d8862e12d54d932ca8 (patch) | |
tree | f1898b4b1f3554806e07d01c7497ee09c7a62575 /inc | |
parent | c5bece40b18e063709520c127c33815e626967e6 (diff) | |
download | rpg-e63d421b53a17172465c31d8862e12d54d932ca8.tar.gz rpg-e63d421b53a17172465c31d8862e12d54d932ca8.tar.bz2 |
do not strip .txt in namespaces in index
Diffstat (limited to 'inc')
-rw-r--r-- | inc/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/search.php b/inc/search.php index 8273eef8c..03abec0c0 100644 --- a/inc/search.php +++ b/inc/search.php @@ -119,7 +119,7 @@ function search_index(&$data,$base,$file,$type,$lvl,$opts){ return false; } - $id = pathID($file); + $id = pathID($file,($type == 'd')); if($type=='d' && $conf['sneaky_index'] && auth_quickaclcheck($id.':') < AUTH_READ){ return false; @@ -550,7 +550,7 @@ function search_universal(&$data,$base,$file,$type,$lvl,$opts){ $return = true; // get ID and check if it is a valid one - $item['id'] = pathID($file,$opts['keeptxt']); + $item['id'] = pathID($file,($type == 'd' || $opts['keeptxt'])); if($item['id'] != cleanID($item['id'])){ if($opts['showmsg']) msg(hsc($item['id']).' is not a valid file name for DokuWiki - skipped',-1); |