File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -631,9 +631,10 @@ public function registerBaseScripts()
631
631
}
632
632
633
633
$ o = '' ;
634
+ $ suffix = '?mv= ' . $ this ->_prepareVersionPostfix ();
634
635
// Add script tags for the required javascript
635
636
foreach ($ externals as $ js ) {
636
- $ o .= '<script src=" ' . $ js . '"></script> ' . "\n" ;
637
+ $ o .= '<script src=" ' . $ js . $ suffix . '"></script> ' . "\n" ;
637
638
}
638
639
639
640
// Get the state and user token for adding to the init script
@@ -758,6 +759,7 @@ public function registerCssJs()
758
759
$ cssjs = [];
759
760
if (!empty ($ jsToCompress )) {
760
761
foreach ($ jsToCompress as $ scr ) {
762
+ $ scr = strpos ($ scr , '? ' ) === false ? $ scr . '?mv= ' . $ versionPostFix : $ scr . '&mv= ' . $ versionPostFix ;
761
763
$ cssjs [] = '<script src=" ' . $ scr . '"></script> ' ;
762
764
}
763
765
}
@@ -768,6 +770,7 @@ public function registerCssJs()
768
770
}
769
771
if (!empty ($ cssToCompress )) {
770
772
foreach ($ cssToCompress as $ scr ) {
773
+ $ scr = strpos ($ scr , '? ' ) === false ? $ scr . '?mv= ' . $ versionPostFix : $ scr . '&mv= ' . $ versionPostFix ;
771
774
$ cssjs [] = '<link href=" ' . $ scr . '" rel="stylesheet" type="text/css" /> ' ;
772
775
}
773
776
}
You can’t perform that action at this time.
0 commit comments