diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-07-01 12:59:59 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-07-01 13:00:40 +0200 |
commit | b26cdbbe55ab83f30ecba9deee8b3541cb005a88 (patch) | |
tree | 77ed08a5ed5f6b14026282a48b533aee3bd2514b /inc/pageutils.php | |
parent | c5bd986f539a03c37d0a6f10e758e4ecd3d51853 (diff) | |
download | rpg-b26cdbbe55ab83f30ecba9deee8b3541cb005a88.tar.gz rpg-b26cdbbe55ab83f30ecba9deee8b3541cb005a88.tar.bz2 |
Support ns; ids
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 3 |
1 files changed, 2 insertions, 1 deletions
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']; |