Merge "Replace Linker::link() with LinkRenderer in special pages"
This commit is contained in:
commit
d3db94de76
2 changed files with 3 additions and 3 deletions
|
|
@ -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 ) );
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue