]> git.pld-linux.org Git - packages/dokuwiki.git/blob - dokuwiki-media-directlink.patch
- export to pdf also for dw2pdf plugin
[packages/dokuwiki.git] / dokuwiki-media-directlink.patch
1 --- dokuwiki-2009-02-14/inc/parser/xhtml.php~   2009-02-14 14:13:25.000000000 +0200
2 +++ dokuwiki-2009-02-14/inc/parser/xhtml.php    2009-03-12 22:05:27.933270570 +0200
3 @@ -680,6 +680,9 @@
4          list($ext,$mime,$dl) = mimetype($src);
5          if(substr($mime,0,5) == 'image' && $render){
6              $link['url'] = ml($src,array('id'=>$ID,'cache'=>$cache),($linking=='direct'));
7 +            if ($linking != 'direct' && $linking != 'nolink') {
8 +                $link['more'] .= 'directlink="'.ml($src,array('id'=>$ID,'cache'=>$cache), true). '"';
9 +            }
10          }elseif($mime == 'application/x-shockwave-flash' && $render){
11              // don't link flash movies
12              $noLink = true;
This page took 0.031507 seconds and 3 git commands to generate.