]> git.pld-linux.org Git - packages/dokuwiki.git/blame - dokuwiki-media-directlink.patch
- export to pdf also for dw2pdf plugin
[packages/dokuwiki.git] / dokuwiki-media-directlink.patch
CommitLineData
1204094e
ER
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.024909 seconds and 4 git commands to generate.