fix: актуальные ресурсы Zoomzilla и проверяемый выпуск (refs #11)
This commit is contained in:
1 parent
144dda6d88
commit
e9a2a0d568
25 files changed
+1255
-67
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
/** Версия логотипа по содержимому исключает старый бренд из браузерного кеша. */
|
||||
function prelandAssetUrl(string $path): string
|
||||
{
|
||||
global $assetsUriPrefix;
|
||||
$file = dirname(__DIR__) . '/' . $path;
|
||||
$version = is_file($file) ? substr(hash_file('sha256', $file), 0, 16) : 'missing';
|
||||
return htmlspecialchars(rtrim($assetsUriPrefix, '/') . '/' . $path . '?v=' . $version, ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
Reference in new issue
Block a user