* Remove last remaining traces of wfLoadExtensionMessages().
[lhc/web/wiklou.git] / includes / PageQueryPage.php
1 <?php
2
3 /**
4 * Variant of QueryPage which formats the result as a simple link to the page
5 *
6 * @ingroup SpecialPage
7 */
8 abstract class PageQueryPage extends QueryPage {
9 /**
10 * Format the result as a simple link to the page
11 *
12 * @param $skin Skin
13 * @param $row Object: result row
14 * @return string
15 */
16 public function formatResult( $skin, $row ) {
17 global $wgContLang;
18
19 $title = Title::makeTitleSafe( $row->namespace, $row->title );
20 $text = $row->title;
21
22 if ( $title instanceof Title ) {
23 $text = $wgContLang->convert( $title->getPrefixedText() );
24 }
25
26 return Linker::linkKnown( $title, htmlspecialchars( $text ) );
27 }
28 }