templates: bust all js caches with resource_version

This commit is contained in:
Zankaria 2024-08-22 00:09:28 +02:00
parent b438283e32
commit abfa773282
6 changed files with 25 additions and 25 deletions

View file

@ -53,7 +53,7 @@
{
error('thread_limit must be an integer above 1.', true);
}
if (!is_array($overboard['exclude']))
if (!is_array($overboard['exclude']))
{
error('Exclude list must be array of strings.', true);
}
@ -62,7 +62,7 @@
error('Exclude list must be array of strings.', true);
}
}
}
return $settings;
@ -199,7 +199,7 @@
}
$html .= '<script>var ukko_overflow = ' . json_encode($overflow) . '</script>';
$html .= '<script type="text/javascript" src="/'.$overboard['uri'].'/overboard.js"></script>';
$html .= '<script type="text/javascript" src="/'.$overboard['uri'].'/overboard.js?=' . $config['resource_version'] . '"></script>';
return Element('index.html', array(
'config' => $config,