MediaWiki  REL1_22
PageQueryPage.php
Go to the documentation of this file.
00001 <?php
00029 abstract class PageQueryPage extends QueryPage {
00037     public function formatResult( $skin, $row ) {
00038         global $wgContLang;
00039 
00040         $title = Title::makeTitleSafe( $row->namespace, $row->title );
00041 
00042         if ( $title instanceof Title ) {
00043             $text = $wgContLang->convert( $title->getPrefixedText() );
00044             return Linker::linkKnown( $title, htmlspecialchars( $text ) );
00045         } else {
00046             return Html::element( 'span', array( 'class' => 'mw-invalidtitle' ),
00047                 Linker::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title ) );
00048         }
00049     }
00050 }