summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorChristian Schneider2021-01-13 16:21:03 +0100
committerChristian Schneider2021-01-13 16:21:03 +0100
commit4f7f5e4b1fd1077ad134860b32203810ef24c0ce (patch)
treead1f7ce97388ff1ac4b11e47960ddebe2ae1fa0f /itjs.class
parentb1548c21528cc8158f09a3acaf6fb8ef51ae7e5f (diff)
downloaditools-4f7f5e4b1fd1077ad134860b32203810ef24c0ce.tar.gz
itools-4f7f5e4b1fd1077ad134860b32203810ef24c0ce.tar.bz2
itools-4f7f5e4b1fd1077ad134860b32203810ef24c0ce.zip
Unified join to always use implode
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 0ccbebf..c2f7f99 100644
--- a/itjs.class
+++ b/itjs.class
@@ -139,7 +139,7 @@ static function checksum($fnlist, $p = array())
$filenames[] = !file_exists($filename) && file_exists($t = it::replace(array('^/www/[^/]*' => "/www/lib.search.ch"), $filename)) ? $t : $filename;
$additional = json_encode($p['additional_data']);
- $key = "itjs_" . md5(join("", it::map('"$v" . @filemtime("$v")', $filenames)) . $additional);
+ $key = "itjs_" . md5(implode("", it::map('"$v" . @filemtime("$v")', $filenames)) . $additional);
if ($filenames && $p['short_expire'] && (time() - max(@array_map('filemtime', $filenames)) < 60))
return "-"; # trigger short expire, our file may not yet be up to date on other slaves