WEB: Load localized data in models

This commit is contained in:
Mataniko
2020-10-10 01:34:06 -04:00
committed by Matan Bareket
parent 34dbf61a23
commit 08fffe6dd0
11 changed files with 32 additions and 28 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class GameDemosModel extends BasicModel
{
$groupedData = $this->getFromCache();
if (is_null($groupedData)) {
$fname = DIR_DATA . '/game_demos.yaml';
$fname = $this->getLocalizedFile('game_demos.yaml');
$demos = \yaml_parse_file($fname);
$games = $this->gameModel->getAllGames();
$platforms = $this->platformsModel->getAllData();