summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan <jan@jandecaluwe.com>2005-05-03 22:10:59 +0200
committerjan <jan@jandecaluwe.com>2005-05-03 22:10:59 +0200
commit0339c8721982fc3a843306c03cd8882e6aebc863 (patch)
tree952d77dcad30d218810f33f8d6c196006bfa5719
parent4b5c52e382adfaf78ef4b9c7260bab3bab347a73 (diff)
downloadrpg-0339c8721982fc3a843306c03cd8882e6aebc863.tar.gz
rpg-0339c8721982fc3a843306c03cd8882e6aebc863.tar.bz2
Make useheading work with relative wiki names
darcs-hash:20050503201059-45605-8d4a3ff954edd165adfc5ae675859f0ec91fe96f.gz
-rw-r--r--inc/parser/xhtml.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index dba7cb426..5b5716a3f 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -428,8 +428,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
global $conf;
global $ID;
- $name = $this->_getLinkTitle($name, $this->_simpleTitle($id), $isImage, $id);
+ // default name is based on $id as given
+ $default = $this->_simpleTitle($id);
+ // now first resolve and clean up the $id
resolve_pageid(getNS($ID),$id,$exists);
+ $name = $this->_getLinkTitle($name, $default, $isImage, $id);
if ( !$isImage ) {
if ( $exists ) {
$class='wikilink1';