From 97d2b60b619e5f4783cbbadffb0135940c740dae Mon Sep 17 00:00:00 2001 From: Ryuji AMANO Date: Wed, 20 Nov 2024 09:30:13 +0900 Subject: [PATCH] fix: #312 Load block message in login screen --- html/modules/user/actions/DefaultAction.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/modules/user/actions/DefaultAction.class.php b/html/modules/user/actions/DefaultAction.class.php index aefe1fbeb..7f8765078 100644 --- a/html/modules/user/actions/DefaultAction.class.php +++ b/html/modules/user/actions/DefaultAction.class.php @@ -27,6 +27,8 @@ public function prepare(&$controller, &$xoopsUser, $moduleConfig) { parent::prepare($controller, $xoopsUser, $moduleConfig); $this->_mAllowRegister = $moduleConfig['allow_register']; + // Load the message for the block. Because the template uses the _MB_USER_* message for the block. + XCube_Root::getSingleton()->mLanguageManager->loadBlockMessageCatalog('user'); } public function getDefaultView(&$controller, &$xoopsUser)