Replace confusing use of rawParams() in onSkinEditSectionLinks()

This message is treated as text, and the entire result is escaped
later. rawParams() has no effect except for avoiding parsing wikitext,
so use plaintextParams() instead.

Change-Id: Ifa1f1b51546d4c24b8789b6264302a3ced81cd52
This commit is contained in:
Bartosz Dziewoński 2024-01-15 22:50:54 +01:00
parent b6ac79b462
commit 79d2e5a3ac

View file

@ -880,7 +880,8 @@ class Hooks implements
// The following messages can be used here:
// * visualeditor-ca-editsource-section-hint
$sourceEditSectionHint = $tabMessages['editsectionsourcehint'];
$result['editsection']['attribs']['title'] = $skin->msg( $sourceEditSectionHint )->rawParams( $tooltip )
$result['editsection']['attribs']['title'] = $skin->msg( $sourceEditSectionHint )
->plaintextParams( $tooltip )
->inLanguage( $lang )->text();
}
@ -908,7 +909,8 @@ class Hooks implements
$attribs = $result['editsection']['attribs'];
$attribs['class'] = ( $attribs['class'] ?? '' ) . ' mw-editsection-visualeditor';
$attribs['title'] = $skin->msg( $veEditSectionHint )->rawParams( $tooltip )
$attribs['title'] = $skin->msg( $veEditSectionHint )
->plaintextParams( $tooltip )
->inLanguage( $lang )->text();
$veLink = [