mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
add imdb language
This commit is contained in:
@@ -28,9 +28,16 @@ class Imdb
|
||||
$config->cachedir = $cacheDir;
|
||||
$config->photodir = $photoDir;
|
||||
$config->photoroot = $photoRoot;
|
||||
$config->language = get_setting('main.imdb_language', 'en-US');
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
public static function listSupportLanguages(): array
|
||||
{
|
||||
$data = require_once sprintf('%s/resources/lang/%s/imdb.php', ROOT_PATH, get_langfolder_cookie(true));
|
||||
return $data['languages'];
|
||||
}
|
||||
|
||||
public function setDebug($debug)
|
||||
{
|
||||
$this->config->debug = $debug;
|
||||
|
||||
Reference in New Issue
Block a user