Merge "Block: Explicit convert Message to string"

This commit is contained in:
jenkins-bot 2019-03-09 20:08:22 +00:00 committed by Gerrit Code Review
commit b972c452b5

View file

@ -1294,10 +1294,10 @@ class Block {
*/
public function getRedactedName() {
if ( $this->mAuto ) {
return Html::rawElement(
return Html::element(
'span',
[ 'class' => 'mw-autoblockid' ],
wfMessage( 'autoblockid', $this->mId )
wfMessage( 'autoblockid', $this->mId )->text()
);
} else {
return htmlspecialchars( $this->getTarget() );