summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-23 13:07:29 +0200
committerandi <andi@splitbrain.org>2005-04-23 13:07:29 +0200
commitcffcc40367a41c169506364f93128f9e221087bc (patch)
tree5a43d8826697ec5912aabd9a9ec54fc8f6290a74 /inc/parser/xhtml.php
parent4d58bd99b9ee57a913e569eb83b609734dee7da9 (diff)
downloadrpg-cffcc40367a41c169506364f93128f9e221087bc.tar.gz
rpg-cffcc40367a41c169506364f93128f9e221087bc.tar.bz2
links to diff and old revisions on recent changes page #255
darcs-hash:20050423110729-9977f-c5830c49d60c32b3b9153412445cd3bfeeca7a15.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php12
1 files changed, 10 insertions, 2 deletions
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) {