Skip to content

Commit 12d2933

Browse files
committed
fix(workflow): translate talk conversation title safely
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent f067f62 commit 12d2933

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

lib/Workflow/CreateTalkConversationProfileFieldChangeOperation.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,14 @@ public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatch
8989
return;
9090
}
9191

92-
$this->broker->createConversation(sprintf(
93-
$this->l10n->t('Profile field change: %1$s for %2$s'),
94-
$fieldLabel,
95-
$subject->getUserUid(),
96-
), array_values($moderators), null);
92+
$this->broker->createConversation(
93+
$this->l10n->t('Profile field change: %1$s for %2$s', [
94+
$fieldLabel,
95+
$subject->getUserUid(),
96+
]),
97+
array_values($moderators),
98+
null,
99+
);
97100
} finally {
98101
$this->workflowSubjectContext->clear();
99102
}

0 commit comments

Comments
 (0)