diff options
author | Michal Rezler <rezlemic@fel.cvut.cz> | 2011-04-08 22:38:27 +0200 |
---|---|---|
committer | Michal Rezler <rezlemic@fel.cvut.cz> | 2011-04-08 22:38:27 +0200 |
commit | 5e8ffd73fd2a48f7a78e085ca7ed0dda73fb8af7 (patch) | |
tree | 7d6e598c52037249f707989a962e89481ca4afa2 /inc/pageutils.php | |
parent | ff482cae0f5a620704d845037d60ae13ab851410 (diff) | |
parent | fda14ffc7c57c4451df9196e8125cd39b1d5c134 (diff) | |
download | dokuwiki-5e8ffd73fd2a48f7a78e085ca7ed0dda73fb8af7.tar.gz dokuwiki-5e8ffd73fd2a48f7a78e085ca7ed0dda73fb8af7.zip |
Merge branch 'master' of git://github.com/splitbrain/dokuwiki
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); |