(bug 35565) Special:Log/patrol doesn't indicate whether patrolling was automatic
[mediawiki.git] / includes / PageQueryPage.php
blobdc5e971d1b5bb3042b1553d646b43c02ef0e4adf
1 <?php
3 /**
4 * Variant of QueryPage which formats the result as a simple link to the page
6 * @ingroup SpecialPage
7 */
8 abstract class PageQueryPage extends QueryPage {
10 /**
11 * Format the result as a simple link to the page
13 * @param $skin Skin
14 * @param $row Object: result row
15 * @return string
17 public function formatResult( $skin, $row ) {
18 global $wgContLang;
19 $title = Title::makeTitleSafe( $row->namespace, $row->title );
20 $text = $row->title;
21 if ( $title instanceof Title ) {
22 $text = $wgContLang->convert( $title->getPrefixedText() );
24 return Linker::linkKnown( $title, htmlspecialchars( $text ) );