summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-22 18:41:53 +0200
committerandi <andi@splitbrain.org>2005-04-22 18:41:53 +0200
commit37e34a5ef6c436d6cf1525ba3643b1597cadc168 (patch)
tree8963802fb170578e997a69d35da0a3c25c100daf /inc/pageutils.php
parent723d78db98a03f01d49b69501be9dc9cf2c52b50 (diff)
downloadrpg-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.php13
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} == '.'){