4 * Variant of QueryPage which formats the result as a simple link to the page
8 abstract 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() );
24 return Linker
::linkKnown( $title, htmlspecialchars( $text ) );