]> git.pld-linux.org Git - packages/dokuwiki.git/blob - interwiki-outputonly.patch
27fe9a5b05cf01309290b4dc3dadfebf10710f2f
[packages/dokuwiki.git] / interwiki-outputonly.patch
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 @@
4  
5      /**
6      */
7 -    function interwikilink($match, $name = null, $wikiName, $wikiUri) {
8 +    function interwikilink($match, $name = null, $wikiName, $wikiUri, $returnonly = false) {
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.020546 seconds and 2 git commands to generate.