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:
@@ -16,10 +16,7 @@ class SimpleModel extends BasicModel
|
||||
public function __construct($type, $filename)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->filename = DIR_DATA . "/$filename";
|
||||
if (!is_file($this->filename) || !is_readable($this->filename)) {
|
||||
throw new \ErrorException(\sprintf(self::FILE_NOT_FOUND, $this->filename));
|
||||
}
|
||||
$this->filename = $this->getLocalizedFile($filename);
|
||||
$this->type = "ScummVM\Objects\\$type";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user