X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecialpage%2FPageQueryPage.php;h=f7f0499350ff1250a753c732ead61a39847a5e77;hb=0bb667d50d3373f873c6dbdf59c3488f45724c6f;hp=45cef2b4500d28720b7f846eec3ec9b8dcf8650a;hpb=baa9036839396fb3b3a12bc06f52291b083a226d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/PageQueryPage.php b/includes/specialpage/PageQueryPage.php index 45cef2b450..f7f0499350 100644 --- a/includes/specialpage/PageQueryPage.php +++ b/includes/specialpage/PageQueryPage.php @@ -22,6 +22,7 @@ */ use Wikimedia\Rdbms\ResultWrapper; +use Wikimedia\Rdbms\IDatabase; /** * Variant of QueryPage which formats the result as a simple link to the page @@ -55,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 ) );