From e09b6b93a1b2119cc0d0edc3560edbab3db23864 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 26 May 2014 14:29:16 +0200 Subject: [PATCH] fix handling of caching parameter --- syntax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax.php b/syntax.php index 8354a24..9ac4c34 100644 --- a/syntax.php +++ b/syntax.php @@ -115,10 +115,10 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin { function render($mode, &$renderer, $data) { global $conf; + list($type, $pattern, $params, $title, $pos) = $data; + // disable caching $renderer->info['cache'] = (bool) $params['cache']; - - list($type, $pattern, $params, $title, $pos) = $data; if ($mode == 'xhtml') { $result = $this->_create_filelist($pattern, $params);