mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:35:55 +00:00
move some more stuff out of common.js
rework client-side cookie functions a bit limit dojo cachebust based on server scripts modification time remove param_escape()
This commit is contained in:
@@ -2566,3 +2566,15 @@
|
||||
function arr_qmarks($arr) {
|
||||
return str_repeat('?,', count($arr) - 1) . '?';
|
||||
}
|
||||
|
||||
function get_scripts_timestamp() {
|
||||
$files = glob("js/*.js");
|
||||
$ts = 0;
|
||||
|
||||
foreach ($files as $file) {
|
||||
$file_ts = filemtime($file);
|
||||
if ($file_ts > $ts) $ts = $file_ts;
|
||||
}
|
||||
|
||||
return $ts;
|
||||
}
|
||||
Reference in New Issue
Block a user