Fix #2041 don't replace lang codes in member menu until module init

This commit is contained in:
Kijin Sung 2022-12-15 23:45:19 +09:00
parent b83c5c4b2c
commit 117ae626b9
2 changed files with 23 additions and 8 deletions

View file

@ -400,7 +400,12 @@ class ModuleHandler extends Handler
$this->is_mobile = Mobile::isFromMobilePhone();
}
// Replace lang codes in member menu
$logged_info = Context::get('logged_info');
if ($logged_info)
{
MemberController::replaceLangForMemberMenu($logged_info);
}
// Create an instance of the requested module and class
if($class_name)