File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
app/code/Magento/Translation Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -68,4 +68,12 @@ public function getTranslationFilePath()
68
68
{
69
69
return $ this ->fileManager ->getTranslationFilePath ();
70
70
}
71
+
72
+ /**
73
+ * @return string
74
+ */
75
+ public function getTranslationFileFullPath ()
76
+ {
77
+ return $ this ->fileManager ->getTranslationFileFullPath ();
78
+ }
71
79
}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function getTranslationFileTimestamp()
73
73
/**
74
74
* @return string
75
75
*/
76
- protected function getTranslationFileFullPath ()
76
+ public function getTranslationFileFullPath ()
77
77
{
78
78
return $ this ->directoryList ->getPath (DirectoryList::STATIC_VIEW ) .
79
79
\DIRECTORY_SEPARATOR .
Original file line number Diff line number Diff line change 26
26
$.initNamespaceStorage('mage-translation-file-version');
27
27
versionObj = $.localStorage.get('mage-translation-file-version');
28
28
29
- <?php $ version = sha1 ($ block ->getTranslationFileTimestamp ( ) . $ block ->getTranslationFilePath ()); ?>
29
+ <?php $ version = sha1 (sha1_file ( $ block ->getTranslationFileFullPath () ) . $ block ->getTranslationFilePath ()); ?>
30
30
31
31
if (versionObj.version !== '<?= /* @noEscape */ $ version ?> ') {
32
32
dependencies.push(
You can’t perform that action at this time.
0 commit comments