Fix invalid message pattern without initialized source language (#5969)

This commit is contained in:
Yuriy Bakhtin 2022-12-06 17:27:43 +04:00 committed by GitHub
parent e282f0bda4
commit 52bdffc523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ HumHub Changelog
- Fix #5928: Invalid Mailer DSN breaks whole application
- Fix #5960: Fix cropping of space banner
- Fix #5967: Fix creating of user from administration with enabled notification for default group
- Fix #5966: Fix invalid message pattern without initialized source language
1.12.2 (November 11, 2022)
--------------------------

View File

@ -39,6 +39,8 @@ class ModuleMessageSource extends PhpMessageSource
*/
public function init()
{
parent::init();
if ($this->module === null && !empty($this->moduleId)) {
$this->module = Yii::$app->moduleManager->getModule($this->moduleId);
}