From: Marina Zozirova Date: Wed, 15 Jan 2025 11:00:40 +0000 (+0000) Subject: ERP-274 Ввести версионность js и css файлов X-Git-Tag: 1.7~76^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f6a6501ba6a975a7e00dc5f0cd6db6b1809937dd;p=erp24_rep%2Fyii-erp24%2F.git ERP-274 Ввести версионность js и css файлов --- diff --git a/erp24/assets/CommonAsset.php b/erp24/assets/CommonAsset.php index d0f4e0d1..0ec2b8f1 100755 --- a/erp24/assets/CommonAsset.php +++ b/erp24/assets/CommonAsset.php @@ -23,12 +23,6 @@ class CommonAsset extends AssetBundle public function init() { - foreach (['js', 'css'] as $type) { - foreach ($this->$type as &$file) { - $file = FileVersionService::versionFile($file); - } - } - $u = file_get_contents(__DIR__ . '/../inc/compress_timestamp.php'); if (preg_match('/=\s*(?P\d+);/', $u, $matches)) { array_unshift($this->css, '/min/css_' . $matches['stamp'] . '.css'); diff --git a/erp24/assets/timetable/StartAsset.php b/erp24/assets/timetable/StartAsset.php index 93c7e5fd..861937d9 100755 --- a/erp24/assets/timetable/StartAsset.php +++ b/erp24/assets/timetable/StartAsset.php @@ -22,7 +22,7 @@ class StartAsset extends AssetBundle { parent::init(); - foreach (['js', 'css'] as $type) { + foreach (['js'] as $type) { foreach ($this->$type as &$file) { $file = FileVersionService::versionFile($file); }