summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php4
1 files changed, 3 insertions, 1 deletions
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