build: fix cache hash for admin

This commit is contained in:
2025-12-06 19:25:13 +03:00
parent 9901d9e146
commit 216ed7e522
3 changed files with 9 additions and 6 deletions

View File

@@ -194,7 +194,7 @@ class ControllerExtensionModuleTgshop extends Controller
{
$appDir = rtrim(DIR_APPLICATION, '/');
if (file_exists("$appDir/view/javascript/telecart/telecart.js")) {
$hash = md5(file_get_contents($appDir . '/view/javascript/telecart/manifest.json'));
$hash = file_get_contents($appDir . '/view/javascript/telecart/checksum.hash');
$this->document->addScript('view/javascript/telecart/telecart.js?v=' . $hash);
$this->document->addStyle('view/javascript/telecart/telecart.css?v=' . $hash);
} elseif (file_exists("$appDir/view/integration.js")) {