* kw (new), el
[mediawiki.git] / includes / PageQueryPage.php
blob53b7765e51ef3dcd1ba6d11d040b71580082be49
1 <?php
3 /**
4 * Variant of QueryPage which formats the result as a simple link to the page
6 * @package MediaWiki
7 * @addtogroup SpecialPage
8 */
9 class PageQueryPage extends QueryPage {
11 /**
12 * Format the result as a simple link to the page
14 * @param Skin $skin
15 * @param object $row Result row
16 * @return string
18 public function formatResult( $skin, $row ) {
19 global $wgContLang;
20 $title = Title::makeTitleSafe( $row->namespace, $row->title );
21 return $skin->makeKnownLinkObj( $title,
22 htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );