Merge "Replace Linker::link() with LinkRenderer in special pages"

This commit is contained in:
jenkins-bot 2017-06-20 21:07:22 +00:00 committed by Gerrit Code Review
commit d3db94de76
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ abstract class PageQueryPage extends QueryPage {
if ( $title instanceof Title ) {
$text = $wgContLang->convert( $title->getPrefixedText() );
return Linker::link( $title, htmlspecialchars( $text ) );
return $this->getLinkRenderer()->makeLink( $title, $text );
} else {
return Html::element( 'span', [ 'class' => 'mw-invalidtitle' ],
Linker::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title ) );

View file

@ -117,8 +117,8 @@ abstract class WantedQueryPage extends QueryPage {
*/
private function makeWlhLink( $title, $result ) {
$wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() );
$label = $this->msg( 'nlinks' )->numParams( $result->value )->escaped();
return Linker::link( $wlh, $label );
$label = $this->msg( 'nlinks' )->numParams( $result->value )->text();
return $this->getLinkRenderer()->makeLink( $wlh, $label );
}
/**