mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 15:27:24 +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;
|
||||
|
||||
@@ -90,6 +90,7 @@ return array (
|
||||
'enable_technical_info' => 'no',
|
||||
'site_language_enabled' => \App\Models\Language::DEFAULT_ENABLED,
|
||||
'show_top_uploader' => 'no',
|
||||
'imdb_language' => 'en-US',
|
||||
),
|
||||
'smtp' =>
|
||||
array (
|
||||
|
||||
Reference in New Issue
Block a user