]> git.pld-linux.org Git - packages/dokuwiki.git/blame - interwiki-outputonly.patch
uses adldap 4.0.4 internally
[packages/dokuwiki.git] / interwiki-outputonly.patch
CommitLineData
87424c97
ER
1--- dokuwiki-2014-05-06/inc/parser/xhtml.php~ 2014-05-08 11:24:44.093792329 +0300
2+++ dokuwiki-2014-05-06/inc/parser/xhtml.php 2014-05-08 11:25:15.469954476 +0300
3@@ -689,7 +689,7 @@
e5ce8ca9
ER
4
5 /**
87424c97 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 /**
This page took 0.027216 seconds and 4 git commands to generate.