wiki.techinc.nl/includes/PageQueryPage.php
Siebrand Mazeland 79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00

23 lines
561 B
PHP

<?php
/**
* Variant of QueryPage which formats the result as a simple link to the page
*
* @addtogroup SpecialPage
*/
class PageQueryPage extends QueryPage {
/**
* 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 );
return $skin->makeKnownLinkObj( $title,
htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
}
}