We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507cd42 commit def3cffCopy full SHA for def3cff
app/code/Magento/Translation/Model/FileManager.php
@@ -110,6 +110,13 @@ public function updateTranslationFileContent($content)
110
*/
111
public function getTranslationFileVersion()
112
{
113
- return sha1(sha1_file($this->getTranslationFileFullPath()) . $this->getTranslationFilePath());
+ $translationFile = $this->getTranslationFileFullPath();
114
+ $translationFileHash = '';
115
+
116
+ if ($this->driverFile->isExists($translationFile)) {
117
+ $translationFileHash = sha1_file($translationFile);
118
+ }
119
120
+ return sha1($translationFileHash . $this->getTranslationFilePath());
121
}
122
0 commit comments