WEB: Load localized data in models

This commit is contained in:
Mataniko authored and Matan Bareket committed 2020-10-10 01:34:06 -04:00
1 parent 34dbf61a23
commit 08fffe6dd0
11 files changed
+32 -28

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ class VersionsModel extends BasicModel
{
$data = $this->getFromCache();
if (is_null($data)) {
$fname = DIR_DATA . '/versions.yaml';
$fname = $this->getLocalizedFile('versions.yaml');
$versions = \yaml_parse_file($fname);
$data = [];