Fix for r38784: force the noconvertlink toggle to be marked as used, otherwise it...
[mediawiki.git] / includes / PageQueryPage.php
blob0d1789eec852be64a16d3e6e5b3b865d1d878973
1 <?php
3 /**
4 * Variant of QueryPage which formats the result as a simple link to the page
6 * @ingroup SpecialPage
7 */
8 class PageQueryPage extends QueryPage {
10 /**
11 * Format the result as a simple link to the page
13 * @param $skin Skin
14 * @param $row Object: result row
15 * @return string
17 public function formatResult( $skin, $row ) {
18 global $wgContLang;
19 $title = Title::makeTitleSafe( $row->namespace, $row->title );
20 return $skin->makeKnownLinkObj( $title,
21 htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );