summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-07-31 14:04:56 +0200
committerChristopher Smith <chris@jalakai.co.uk>2013-08-01 11:11:52 +0200
commit40960973d7ca45411e13e072595928d13534989e (patch)
tree0e40e4b7953deb64060137f5d85918929913c332 /inc
parent87e03c3bebf87c1a71a40fbf873cdd1f836d4fb2 (diff)
downloadrpg-40960973d7ca45411e13e072595928d13534989e.tar.gz
rpg-40960973d7ca45411e13e072595928d13534989e.tar.bz2
include updateVersion in CSS/JS tseed to force reload on update
Diffstat (limited to 'inc')
-rw-r--r--inc/template.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/inc/template.php b/inc/template.php
index a87650b84..b8129f914 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -291,12 +291,10 @@ function tpl_metaheaders($alt = true) {
$head = array();
// prepare seed for js and css
- $tseed = 0;
+ $tseed = $updateVersion;
$depends = getConfigFiles('main');
- foreach($depends as $f) {
- $time = @filemtime($f);
- if($time > $tseed) $tseed = $time;
- }
+ foreach($depends as $f) $tseed .= @filemtime($f);
+ $tseed = md5($tseed);
// the usual stuff
$head['meta'][] = array('name'=> 'generator', 'content'=> 'DokuWiki');