X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FSkin.php;h=86a1c4c94b5c96b149f6c788b66d75ec57d22a34;hp=ac41c466cdfee0855a513d9917645328eeb5a993;hb=a9164f143a59a8d957a1d7f205715ac57fff3c8c;hpb=b306873222f91789e334abcf2005d4b610cfce91 diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index ac41c466cd..86a1c4c94b 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -755,7 +755,10 @@ abstract class Skin extends ContextSource { 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 ); @@ -1620,11 +1623,10 @@ abstract class Skin extends ContextSource { $links = [ 'editsection' => [ - 'text' => $this->msg( 'editsection' )->inLanguage( $lang )->escaped(), + 'text' => $this->msg( 'editsection' )->inLanguage( $lang )->text(), 'targetTitle' => $nt, 'attribs' => $attribs, - 'query' => [ 'action' => 'edit', 'section' => $section ], - 'options' => [ 'noclasses', 'known' ] + 'query' => [ 'action' => 'edit', 'section' => $section ] ] ]; @@ -1634,12 +1636,11 @@ abstract class Skin extends ContextSource { $linksHtml = []; foreach ( $links as $k => $linkDetails ) { - $linksHtml[] = Linker::link( + $linksHtml[] = Linker::linkKnown( $linkDetails['targetTitle'], - $linkDetails['text'], + htmlspecialchars( $linkDetails['text'] ), $linkDetails['attribs'], - $linkDetails['query'], - $linkDetails['options'] + $linkDetails['query'] ); }