'namespace' => 'page_namespace',
'title' => 'page_title',
'value' => 'COUNT(*)',
- 'redirect' => 'page_is_redirect'
],
'conds' => [
- 'page_namespace' => MWNamespace::getContentNamespaces(),
- 'page_id = rev_page' ],
+ 'page_namespace' => MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getContentNamespaces(),
+ 'page_id = rev_page',
+ 'page_is_redirect = 0',
+ ],
'options' => [
- 'GROUP BY' => [ 'page_namespace', 'page_title', 'page_is_redirect' ]
+ 'GROUP BY' => [ 'page_namespace', 'page_title' ]
]
];
}
}
$linkRenderer = $this->getLinkRenderer();
$text = MediaWikiServices::getInstance()->getContentLanguage()->
- convert( $nt->getPrefixedText() );
- $plink = $linkRenderer->makeLink( $nt, $text );
+ convert( htmlspecialchars( $nt->getPrefixedText() ) );
+ $plink = $linkRenderer->makeLink( $nt, new HtmlArmor( $text ) );
$nl = $this->msg( 'nrevisions' )->numParams( $result->value )->text();
$redirect = isset( $result->redirect ) && $result->redirect ?