mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 00:58:44 +00:00
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:
parent
b6ac79b462
commit
79d2e5a3ac
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue