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 ) {
20 $title = Title
::makeTitleSafe( $row->namespace, $row->title
);
22 if ( $title instanceof Title
) {
23 $text = $wgContLang->convert( $title->getPrefixedText() );
24 return Linker
::linkKnown( $title, htmlspecialchars( $text ) );
26 return Html
::element( 'span', array( 'class' => 'mw-invalidtitle' ),
27 Linker
::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title
) );