Explicit convert Message objects when used as string

This makes clear which escaping should be used.
In all cases it needs Message::text, because there are used inside
Html::element. There is no visual different.

Change-Id: I17474a7d5f057321e8c759d4bf94c8234c7a89c7
This commit is contained in:
Umherirrender 2018-08-21 14:16:22 +02:00
parent 7f48cfbdb9
commit e89206ce4a

View file

@ -23,7 +23,7 @@ class SpecialNotificationsFormatter extends EchoEventFormatter {
$markAsReadIcon = new OOUI\IconWidget( [
'icon' => 'close',
'title' => wfMessage( 'echo-notification-markasread' ),
'title' => wfMessage( 'echo-notification-markasread' )->text(),
] );
$markAsReadForm = $markReadSpecialPage->getMinimalForm(