From b26cdbbe55ab83f30ecba9deee8b3541cb005a88 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Thu, 1 Jul 2010 12:59:59 +0200 Subject: Support ns; ids --- inc/pageutils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/pageutils.php') diff --git a/inc/pageutils.php b/inc/pageutils.php index 43c84038f..a2efdc5d5 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -437,7 +437,8 @@ function resolve_pageid($ns,&$page,&$exists){ $file = wikiFN($page); // if ends with colon or slash we have a namespace link - if(substr($page,-1) == ':' || ($conf['useslash'] && substr($page,-1) == '/')){ + if(in_array(substr($page,-1), array(':', ';')) || + ($conf['useslash'] && substr($page,-1) == '/')){ if(page_exists($page.$conf['start'])){ // start page inside namespace $page = $page.$conf['start']; -- cgit v1.2.3