diff options
author | andi <andi@splitbrain.org> | 2005-04-22 18:41:53 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-22 18:41:53 +0200 |
commit | 37e34a5ef6c436d6cf1525ba3643b1597cadc168 (patch) | |
tree | 8963802fb170578e997a69d35da0a3c25c100daf /inc/pageutils.php | |
parent | 723d78db98a03f01d49b69501be9dc9cf2c52b50 (diff) | |
download | rpg-37e34a5ef6c436d6cf1525ba3643b1597cadc168.tar.gz rpg-37e34a5ef6c436d6cf1525ba3643b1597cadc168.tar.bz2 |
backlink with camelcase support (untested)
darcs-hash:20050422164153-9977f-443f332fa6e591dfa352448ceb5dd24811d227a2.gz
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 367e53625..6334afedd 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -122,14 +122,11 @@ function localeFN($id){ /** * Returns a full media id * - * uses global $ID to resolve relative pages - * * @author Andreas Gohr <andi@splitbrain.org> */ -function resolve_mediaid(&$page,&$exists){ - global $ID; +function resolve_mediaid($ns,&$page,&$exists){ global $conf; - $ns = getNS($ID); + //if links starts with . add current namespace if($page{0} == '.'){ $page = $ns.':'.substr($page,1); @@ -148,14 +145,10 @@ function resolve_mediaid(&$page,&$exists){ /** * Returns a full page id * - * uses global $ID to resolve relative pages - * * @author Andreas Gohr <andi@splitbrain.org> */ -function resolve_pageid(&$page,&$exists){ - global $ID; +function resolve_pageid($ns,&$page,&$exists){ global $conf; - $ns = getNS($ID); //if links starts with . add current namespace if($page{0} == '.'){ |