Skip to content

Commit def3cff

Browse files
committed
Fixes integration tests.
1 parent 507cd42 commit def3cff

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/code/Magento/Translation/Model/FileManager.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ public function updateTranslationFileContent($content)
110110
*/
111111
public function getTranslationFileVersion()
112112
{
113-
return sha1(sha1_file($this->getTranslationFileFullPath()) . $this->getTranslationFilePath());
113+
$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());
114121
}
115122
}

0 commit comments

Comments
 (0)