From cffcc40367a41c169506364f93128f9e221087bc Mon Sep 17 00:00:00 2001 From: andi Date: Sat, 23 Apr 2005 13:07:29 +0200 Subject: links to diff and old revisions on recent changes page #255 darcs-hash:20050423110729-9977f-c5830c49d60c32b3b9153412445cd3bfeeca7a15.gz --- inc/parser/xhtml.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'inc/parser/xhtml.php') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 1c26b0645..70a8c7830 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -388,7 +388,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->internallink($link,$link); } - function internallink($id, $name = NULL, $search=NULL) { + /** + * $search and $returnonly are not for the renderer but are used + * elsewhere - no need to implement them in other renderers + */ + function internallink($id, $name = NULL, $search=NULL,$returnonly=false) { global $conf; global $ID; @@ -423,7 +427,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer { } //output formatted - echo $this->_formatLink($link); + if($returnonly){ + return $this->_formatLink($link); + }else{ + echo $this->_formatLink($link); + } } function externallink($url, $name = NULL) { -- cgit v1.2.3