From defb7d5769d8bc3c0a23d08419571a19429d1fc6 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sat, 7 May 2011 23:11:00 +0100 Subject: fixed some missing config_cascade occurrences (FS#2235) --- lib/exe/js.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/exe') diff --git a/lib/exe/js.php b/lib/exe/js.php index 5f376ee24..b2ae3f7fe 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -188,9 +188,11 @@ function js_cacheok($cache,$files){ $ctime = @filemtime($cache); if(!$ctime) return false; //There is no cache + global $config_cascade; + // some additional files to check $files = array_merge($files, getConfigFiles('main')); - $files[] = DOKU_CONF.'userscript.js'; + $files[] = $config_cascade['userscript']['default']; $files[] = __FILE__; // now walk the files -- cgit v1.2.3