executeLBFromResultWrapper( $res ); } /** * Format the result as a simple link to the page * * @param Skin $skin * @param object $row Result row * @return string */ public function formatResult( $skin, $row ) { global $wgContLang; $title = Title::makeTitleSafe( $row->namespace, $row->title ); if ( $title instanceof Title ) { $text = $wgContLang->convert( $title->getPrefixedText() ); return $this->getLinkRenderer()->makeLink( $title, $text ); } else { return Html::element( 'span', [ 'class' => 'mw-invalidtitle' ], Linker::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title ) ); } } }