}
public function getQueryInfo() {
- return array(
- 'tables' => array( 'category' ),
- 'fields' => array( 'title' => 'cat_title',
+ return [
+ 'tables' => [ 'category' ],
+ 'fields' => [ 'title' => 'cat_title',
'namespace' => NS_CATEGORY,
- 'value' => 'cat_pages' ),
- 'conds' => array( 'cat_pages > 0' ),
- );
+ 'value' => 'cat_pages' ],
+ 'conds' => [ 'cat_pages > 0' ],
+ ];
}
function sortDescending() {
if ( !$nt ) {
return Html::element(
'span',
- array( 'class' => 'mw-invalidtitle' ),
+ [ 'class' => 'mw-invalidtitle' ],
Linker::getInvalidTitleDescription(
$this->getContext(),
NS_CATEGORY,
}
$text = $wgContLang->convert( $nt->getText() );
- $plink = Linker::link( $nt, htmlspecialchars( $text ) );
+ $plink = $this->getLinkRenderer()->makeLink( $nt, $text );
$nlinks = $this->msg( 'nmembers' )->numParams( $result->value )->escaped();
return $this->getLanguage()->specialList( $plink, $nlinks );