summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-10-26 21:44:30 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-10-26 21:44:30 +0200
commite63d421b53a17172465c31d8862e12d54d932ca8 (patch)
treef1898b4b1f3554806e07d01c7497ee09c7a62575 /inc
parentc5bece40b18e063709520c127c33815e626967e6 (diff)
downloadrpg-e63d421b53a17172465c31d8862e12d54d932ca8.tar.gz
rpg-e63d421b53a17172465c31d8862e12d54d932ca8.tar.bz2
do not strip .txt in namespaces in index
Diffstat (limited to 'inc')
-rw-r--r--inc/search.php4
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);