Set default language if lang_type is not available

This commit is contained in:
Kijin Sung 2020-06-22 00:04:08 +09:00
parent 2abeaba75d
commit 67d4217052
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ class ModuleInfoParser
}
// Get the current language.
$lang = \Context::getLangType();
$lang = \Context::getLangType() ?: 'en';
// Initialize the module definition.
$info = new \stdClass;