* API: Watchlist feed allows 'hours' parameter of how many hours to go back
[mediawiki.git] / includes / PageQueryPage.php
blob5b82ebf6b20b1bdb6f9213430132a67ef4662909
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() ) ) );