mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
WEB: Load localized data in models
This commit is contained in:
@@ -26,7 +26,7 @@ class ScreenshotsModel extends BasicModel
|
||||
/* Get all screenshots. */
|
||||
public function getAllScreenshots()
|
||||
{
|
||||
$fname = DIR_DATA . '/screenshots.yaml';
|
||||
$fname = $this->getLocalizedFile('screenshots.yaml');
|
||||
$screenshots = \yaml_parse_file($fname);
|
||||
$platforms = $this->platformsModel->getAllData();
|
||||
$games = $this->gameModel->getAllGames();
|
||||
|
||||
Reference in New Issue
Block a user