#2025 좀더 근본적인 해결: 모듈 autoload시 lang파일 자동 로딩하도록 변경

This commit is contained in:
Kijin Sung 2022-12-15 22:52:00 +09:00
parent 4c261abfb8
commit 0fafb1cf6b
4 changed files with 21 additions and 15 deletions

View file

@ -91,12 +91,6 @@ class ModuleObject extends BaseObject
$obj->user = Rhymix\Framework\Session::getMemberInfo();
}
// Load language files.
if($module !== 'module')
{
Context::loadLang($module_path . 'lang');
}
// Return the instance.
return $GLOBALS['_module_instances_'][$class_name] = $obj;
}