summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-07-31 14:04:56 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-07-31 14:05:38 +0200
commitcd997f938b450010efa93aa8a65ecbed9a68a32e (patch)
treeca7f95be57957c5f03a97e2de9582fbe5d77142f /inc
parentb25974c4272787f8c66d36398d9578e630888451 (diff)
downloadrpg-cd997f938b450010efa93aa8a65ecbed9a68a32e.tar.gz
rpg-cd997f938b450010efa93aa8a65ecbed9a68a32e.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');