Initial implementation of lang class that prefers PHP to XML

This commit is contained in:
Kijin Sung 2016-01-27 16:26:06 +09:00
parent 8ae2dba0b9
commit f68e6118bc
3 changed files with 219 additions and 132 deletions

View file

@ -1132,7 +1132,10 @@ class ModuleHandler extends Handler
}
// Load language files for the class
Context::loadLang($class_path . 'lang');
if($module !== 'module')
{
Context::loadLang($class_path . 'lang');
}
if($extend_module)
{
Context::loadLang(ModuleHandler::getModulePath($parent_module) . 'lang');