}
public function getQueryInfo() {
- return array(
- 'tables' => array( 'page', 'revision' ),
- 'fields' => array(
+ return [
+ 'tables' => [ 'page', 'revision' ],
+ 'fields' => [
'namespace' => 'page_namespace',
'title' => 'page_title',
'value' => 'rev_timestamp'
- ),
- 'conds' => array(
+ ],
+ 'conds' => [
'page_namespace' => MWNamespace::getContentNamespaces(),
'page_is_redirect' => 0,
'page_latest=rev_id'
- )
- );
+ ]
+ ];
}
public function usesTimestamps() {
return false;
}
+ public function preprocessResults( $db, $res ) {
+ $this->executeLBFromResultWrapper( $res );
+ }
+
/**
* @param Skin $skin
* @param object $result Result row
$d = $this->getLanguage()->userTimeAndDate( $result->value, $this->getUser() );
$title = Title::makeTitle( $result->namespace, $result->title );
- $link = Linker::linkKnown(
+ $linkRenderer = $this->getLinkRenderer();
+ $link = $linkRenderer->makeKnownLink(
$title,
- htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) )
+ $wgContLang->convert( $title->getPrefixedText() )
);
return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) );