]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-274 Ввести версионность js и css файлов
authorMarina Zozirova <marina.zozirova@erp-flowers.ru>
Wed, 15 Jan 2025 11:00:40 +0000 (11:00 +0000)
committerAleksey Filippov <aleksey.filippov@erp-flowers.ru>
Wed, 15 Jan 2025 11:00:40 +0000 (11:00 +0000)
erp24/assets/CommonAsset.php
erp24/assets/timetable/StartAsset.php

index d0f4e0d186386bb9222eedb977c3d2c8a1b92a93..0ec2b8f16961ebc24717dc3644064d17144985e4 100755 (executable)
@@ -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<stamp>\d+);/', $u, $matches)) {
             array_unshift($this->css, '/min/css_' . $matches['stamp'] . '.css');
index 93c7e5fdf74c9c5ffe3c8a3bb1a628abd39fbc1f..861937d9875483e064cdd978ef7192fb4ee02831 100755 (executable)
@@ -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);
             }