Skip to content
Snippets Groups Projects
Commit 40960973 authored by Andreas Gohr's avatar Andreas Gohr Committed by Christopher Smith
Browse files

include updateVersion in CSS/JS tseed to force reload on update

parent 87e03c3b
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment