$current = $data['current'];
if ( $current->getComment() != '' ) {
- $this->getOutput()->addHTML( $this->msg( 'editcomment' )->rawParams(
- Linker::formatComment( $current->getComment() ) )->parse() );
+ $this->getOutput()->addWikiMsg(
+ 'editcomment',
+ Message::rawParam(
+ Linker::formatComment( $current->getComment() )
+ )
+ );
}
}
}
}
- $out->addHTML( $this->msg( 'undelete-revision' )->rawParams( $link )->params(
- $time )->rawParams( $userLink )->params( $d, $t )->parse() . '</div>' );
+ $out->addWikiMsg(
+ 'undelete-revision',
+ Message::rawParam( $link ), $time,
+ Message::rawParam( $userLink ), $d, $t
+ );
+ $out->addHtml( '</div>' );
if ( !Hooks::run( 'UndeleteShowRevision', [ $this->mTargetObj, $rev ] ) ) {
return;
}
$link = $this->getLinkRenderer()->makeKnownLink( $this->mTargetObj );
- $out->addHTML( $this->msg( 'undeletedpage' )->rawParams( $link )->parse() );
+ $out->addWikiMsg( 'undeletedpage', Message::rawParam( $link ) );
} else {
$out->setPageTitle( $this->msg( 'undelete-error' ) );
}