From c662a49af623eec4bf6db7067994e2b1aac0f72c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 9 Jul 2007 20:33:46 +0200 Subject: fix ID resolving with useslash FS#1176 darcs-hash:20070709183346-7ad00-1bac56195b99f05017a2c3623ae84b61769da85b.gz --- inc/pageutils.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/pageutils.php') diff --git a/inc/pageutils.php b/inc/pageutils.php index 778e7d664..4b4ad216c 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -321,6 +321,11 @@ function localeFN($id){ * @author */ function resolve_id($ns,$id,$clean=true){ + global $conf; + + // some pre cleaning for useslash: + if($conf['useslash']) $id = str_replace('/',':',$id); + // if the id starts with a dot we need to handle the // relative stuff if($id{0} == '.'){ -- cgit v1.2.3