(bug 15831) Modern skin RTL support is bugous
[mediawiki.git] / includes / PageQueryPage.php
blob98338b1d06d469553aa24ac7f06392e3e5dc55cf
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 $text = null;
21 if ($title instanceof Title)
22 $text = htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) );
23 return $skin->link( $title, $text, array(), array(), array('known', 'noclasses') );