summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorGuy Brand <gb@isis.u-strasbg.fr>2007-02-17 23:07:46 +0100
committerGuy Brand <gb@isis.u-strasbg.fr>2007-02-17 23:07:46 +0100
commit1179df0e99996b3a67245ef9efa7b71b8b9cad74 (patch)
treebce548320ac5ee0f736fe02270b5765d93f35ddf /inc/pageutils.php
parentece9fa7a2e2237ae9c68cc8c39521de00ac91739 (diff)
downloadrpg-1179df0e99996b3a67245ef9efa7b71b8b9cad74.tar.gz
rpg-1179df0e99996b3a67245ef9efa7b71b8b9cad74.tar.bz2
Fix namespace links and titles (FS 1005, 1006)
darcs-hash:20070217220746-19e2d-76c857902d24301707eb783ced96f25c00526659.gz
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 69e04f489..6471413b6 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -341,8 +341,8 @@ function resolve_pageid($ns,&$page,&$exists){
// get filename (calls clean itself)
$file = wikiFN($page);
- // if ends with colon we have a namespace link
- if(substr($page,-1) == ':'){
+ // if ends with colon or slash we have a namespace link
+ if(substr($page,-1) == ':' || ($conf['useslash'] && substr($page,-1) == '/')){
if(@file_exists(wikiFN($page.$conf['start']))){
// start page inside namespace
$page = $page.$conf['start'];