public function getQueryInfo() {
$tables = [ 'page', 'revision' ];
$conds = [
- 'page_namespace' => MWNamespace::getContentNamespaces(),
+ 'page_namespace' =>
+ MediaWikiServices::getInstance()->getNamespaceInfo()->getContentNamespaces(),
'page_is_redirect' => 0
];
$joinConds = [
'revision' => [
- 'INNER JOIN', [
+ 'JOIN', [
'page_latest = rev_id'
]
],
$linkRenderer = $this->getLinkRenderer();
$link = $linkRenderer->makeKnownLink(
$title,
- MediaWikiServices::getInstance()->getContentLanguage()->
- convert( $title->getPrefixedText() )
+ new HtmlArmor( MediaWikiServices::getInstance()->getContentLanguage()->
+ convert( htmlspecialchars( $title->getPrefixedText() ) ) )
);
return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) );