mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -23,7 +23,7 @@ class ModuleInfoParser
|
|||
}
|
||||
|
||||
// Get the current language.
|
||||
$lang = \Context::getLangType();
|
||||
$lang = \Context::getLangType() ?: 'en';
|
||||
|
||||
// Initialize the module definition.
|
||||
$info = new \stdClass;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue