From 0339c8721982fc3a843306c03cd8882e6aebc863 Mon Sep 17 00:00:00 2001 From: jan Date: Tue, 3 May 2005 22:10:59 +0200 Subject: Make useheading work with relative wiki names darcs-hash:20050503201059-45605-8d4a3ff954edd165adfc5ae675859f0ec91fe96f.gz --- inc/parser/xhtml.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inc/parser') 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'; -- cgit v1.2.3