From 64cebf9c732e55ccd8366415dd545d7f74278592 Mon Sep 17 00:00:00 2001 From: LarsDW223 Date: Fri, 13 May 2016 19:33:15 +0200 Subject: [PATCH] Preview image path are always direct. Fixes #24. --- syntax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index aa7db87..5752b4d 100644 --- a/syntax.php +++ b/syntax.php @@ -535,7 +535,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin { protected function _render_preview_image ($filepath, $basedir, $webdir, $params, Doku_Renderer $renderer) { $imagepath = $this->get_preview_image_path($filepath, $params); if (!empty($imagepath)) { - $imgLink = $this->_get_link_url ($imagepath, $basedir, $webdir, 0, $params['direct']); + $imgLink = $this->_get_link_url ($imagepath, $basedir, $webdir, 0, 1); $previewsize = $params['previewsize']; if ($previewsize == 0) {