mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Set default language if lang_type is not available
This commit is contained in:
parent
2abeaba75d
commit
67d4217052
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ class ModuleActionParser
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the current language.
|
// Get the current language.
|
||||||
$lang = \Context::getLangType();
|
$lang = \Context::getLangType() ?: 'en';
|
||||||
|
|
||||||
// Initialize the module definition.
|
// Initialize the module definition.
|
||||||
$info = new \stdClass;
|
$info = new \stdClass;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ class ModuleInfoParser
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the current language.
|
// Get the current language.
|
||||||
$lang = \Context::getLangType();
|
$lang = \Context::getLangType() ?: 'en';
|
||||||
|
|
||||||
// Initialize the module definition.
|
// Initialize the module definition.
|
||||||
$info = new \stdClass;
|
$info = new \stdClass;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue