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:
@@ -15,7 +15,7 @@ class DownloadsModel extends BasicModel
|
||||
{
|
||||
$sections = $this->getFromCache();
|
||||
if (is_null($sections)) {
|
||||
$fname = DIR_DATA . '/downloads.xml';
|
||||
$fname = $this->getLocalizedFile('downloads.xml');
|
||||
/* Now parse the data. */
|
||||
$parser = new XMLParser();
|
||||
$parsedData = $parser->parseByFilename($fname);
|
||||
|
||||
Reference in New Issue
Block a user