]>
Commit | Line | Data |
---|---|---|
a6dc161d ER |
1 | --- dokuwiki-rc2013-10-28/inc/parser/xhtml.php~ 2013-11-13 22:20:29.920364255 +0200 |
2 | +++ dokuwiki-rc2013-10-28/inc/parser/xhtml.php 2013-11-13 22:20:52.460009959 +0200 | |
3 | @@ -686,7 +686,7 @@ | |
e5ce8ca9 ER |
4 | |
5 | /** | |
6 | */ | |
a6dc161d ER |
7 | - function interwikilink($match, $name = null, $wikiName, $wikiUri) { |
8 | + function interwikilink($match, $name = null, $wikiName, $wikiUri, $returnonly = false) { | |
e5ce8ca9 ER |
9 | global $conf; |
10 | ||
11 | $link = array(); | |
12 | @@ -598,7 +598,11 @@ | |
13 | $link['title'] = htmlspecialchars($link['url']); | |
14 | ||
15 | //output formatted | |
16 | - $this->doc .= $this->_formatLink($link); | |
17 | + if($returnonly){ | |
18 | + return $this->_formatLink($link); | |
19 | + }else{ | |
20 | + $this->doc .= $this->_formatLink($link); | |
21 | + } | |
22 | } | |
23 | ||
24 | /** |