diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-04-18 17:00:40 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-04-18 17:00:40 +0300 |
commit | f493983cbddc6c8c387a76bf3f6631853485162b (patch) | |
tree | 38cc53f0b287fde2a1b4426faa8a6fff1e56d769 /inc/pageutils.php | |
parent | 058f1c3e98b1437a691cc77a36002dee1c41f007 (diff) | |
parent | 342e58c8c048bfd5f57f10bd88cee95aa2732e96 (diff) | |
download | rpg-f493983cbddc6c8c387a76bf3f6631853485162b.tar.gz rpg-f493983cbddc6c8c387a76bf3f6631853485162b.tar.bz2 |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index cd01dcae7..c9bf60135 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -423,8 +423,14 @@ function resolve_mediaid($ns,&$page,&$exists){ */ function resolve_pageid($ns,&$page,&$exists){ global $conf; + global $ID; $exists = false; + //empty address should point to current page + if ($page === "") { + $page = $ID; + } + //keep hashlink if exists then clean both parts if (strpos($page,'#')) { list($page,$hash) = explode('#',$page,2); |