4 * Variant of QueryPage which formats the result as a simple link to the page
8 class PageQueryPage extends QueryPage {
11 * Format the result as a simple link to the page
14 * @param $row Object: result row
17 public function formatResult( $skin, $row ) {
19 $title = Title::makeTitleSafe( $row->namespace, $row->title );
21 if ($title instanceof Title)
22 $text = $wgContLang->convert( $title->getPrefixedText() );
23 return $skin->link( $title, htmlspecialchars($text), array(), array(), array('known', 'noclasses') );