return $subpages;
}
- if ( $out->isArticle() && MWNamespace::hasSubpages( $title->getNamespace() ) ) {
+ if (
+ $out->isArticle() && MediaWikiServices::getInstance()->getNamespaceInfo()->
+ hasSubpages( $title->getNamespace() )
+ ) {
$ptext = $title->getPrefixedText();
if ( strpos( $ptext, '/' ) !== false ) {
$links = explode( '/', $ptext );
'text' => $this->msg( 'editsection' )->inLanguage( $lang )->text(),
'targetTitle' => $nt,
'attribs' => $attribs,
- 'query' => [ 'action' => 'edit', 'section' => $section ],
- 'options' => [ 'noclasses', 'known' ]
+ 'query' => [ 'action' => 'edit', 'section' => $section ]
]
];
$linksHtml = [];
foreach ( $links as $k => $linkDetails ) {
- $linksHtml[] = Linker::link(
+ $linksHtml[] = Linker::linkKnown(
$linkDetails['targetTitle'],
htmlspecialchars( $linkDetails['text'] ),
$linkDetails['attribs'],
- $linkDetails['query'],
- $linkDetails['options']
+ $linkDetails['query']
);
}