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:
1 parent
34dbf61a23
commit
08fffe6dd0
11 files changed
+32
-28
No files matched your search
@@ -14,7 +14,7 @@ class LinksModel extends BasicModel
|
||||
{
|
||||
$entries = $this->getFromCache();
|
||||
if (is_null($entries)) {
|
||||
$fname = DIR_DATA . '/links.yaml';
|
||||
$fname = $this->getLocalizedFile('links.yaml');
|
||||
$parsedData = \yaml_parse_file($fname);
|
||||
$entries = [];
|
||||
foreach ($parsedData as $value) {
|
||||
|
||||
Reference in new issue
Block a user