fix: актуальные ресурсы Zoomzilla и проверяемый выпуск (refs #11)

This commit is contained in:
Panfilov Konstantin committed 2026-10-21 02:27:08 +03:00
1 parent 144dda6d88
commit e9a2a0d568
25 files changed
+1255 -67

No files matched your search

+9
View File
@@ -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');
}