diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-09 20:33:46 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-09 20:33:46 +0200 |
commit | c662a49af623eec4bf6db7067994e2b1aac0f72c (patch) | |
tree | 70382920e1df87e6026e67776cfcbfa78f0a24d9 /inc | |
parent | 9711045ab53138a37d7e69508e643d469f9f3a10 (diff) | |
download | rpg-c662a49af623eec4bf6db7067994e2b1aac0f72c.tar.gz rpg-c662a49af623eec4bf6db7067994e2b1aac0f72c.tar.bz2 |
fix ID resolving with useslash FS#1176
darcs-hash:20070709183346-7ad00-1bac56195b99f05017a2c3623ae84b61769da85b.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/pageutils.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 <bart at mediawave dot nl> */ 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} == '.'){ |