Skip to content

Commit ef2c4ba

Browse files
committed
🌐 Translate theme before survey rendering in fill and fillwidget modules
1 parent 57c9a46 commit ef2c4ba

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

lhc_web/modules/lhsurvey/fill.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050

5151
if ($chat->hash == $hash)
5252
{
53+
if (isset($theme) && $theme instanceof erLhAbstractModelWidgetTheme) {
54+
$theme->translate(['ou' => $chat->online_user]);
55+
}
56+
5357
$survey = erLhAbstractModelSurvey::fetch($Params['user_parameters_unordered']['survey']);
5458
$surveyItem = erLhAbstractModelSurveyItem::getInstance($chat, $survey);
5559

lhc_web/modules/lhsurvey/fillwidget.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
throw new Exception(erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat','Provided survey does not exists!'));
5454
}
5555

56+
if (isset($theme) && $theme instanceof erLhAbstractModelWidgetTheme) {
57+
$theme->translate(['ou' => $chat->online_user]);
58+
}
59+
5660
$survey->translate();
5761

5862
if ($survey instanceof erLhAbstractModelSurvey) {

0 commit comments

Comments
 (0)