]> git.pld-linux.org Git - packages/dokuwiki.git/blob - interwiki-outputonly.patch
uses adldap 4.0.4 internally
[packages/dokuwiki.git] / interwiki-outputonly.patch
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 @@
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.06485 seconds and 3 git commands to generate.