wiki.techinc.nl/includes/PageQueryPage.php

24 lines
561 B
PHP
Raw Normal View History

2007-03-31 23:36:58 +00:00
<?php
/**
* Variant of QueryPage which formats the result as a simple link to the page
*
* @addtogroup SpecialPage
2007-03-31 23:36:58 +00:00
*/
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() ) ) );
}
}