X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=blobdiff_plain;f=includes%2FPageQueryPage.php;h=dc5e971d1b5bb3042b1553d646b43c02ef0e4adf;hb=1a40d939490097b00b27acfcef6a4dba0e13a94b;hp=98338b1d06d469553aa24ac7f06392e3e5dc55cf;hpb=015502e78cd49dc1b25ec21361bb8efcd33da562;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PageQueryPage.php b/includes/PageQueryPage.php index 98338b1d06..dc5e971d1b 100644 --- a/includes/PageQueryPage.php +++ b/includes/PageQueryPage.php @@ -5,7 +5,7 @@ * * @ingroup SpecialPage */ -class PageQueryPage extends QueryPage { +abstract class PageQueryPage extends QueryPage { /** * Format the result as a simple link to the page @@ -17,9 +17,10 @@ class PageQueryPage extends QueryPage { public function formatResult( $skin, $row ) { global $wgContLang; $title = Title::makeTitleSafe( $row->namespace, $row->title ); - $text = null; - if ($title instanceof Title) - $text = htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ); - return $skin->link( $title, $text, array(), array(), array('known', 'noclasses') ); + $text = $row->title; + if ( $title instanceof Title ) { + $text = $wgContLang->convert( $title->getPrefixedText() ); + } + return Linker::linkKnown( $title, htmlspecialchars( $text ) ); } }