X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FSkin.php;h=a34e83330ed4a0192628122525c3ae6539634971;hp=ac41c466cdfee0855a513d9917645328eeb5a993;hb=a3cd158d8433e41cbeb299f0e268dfef363b2afd;hpb=6a19bbfdece16150b36ee8ce3c105de4f22111ce diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index ac41c466cd..a34e83330e 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,7 +1623,7 @@ 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 ], @@ -1636,7 +1639,7 @@ abstract class Skin extends ContextSource { foreach ( $links as $k => $linkDetails ) { $linksHtml[] = Linker::link( $linkDetails['targetTitle'], - $linkDetails['text'], + htmlspecialchars( $linkDetails['text'] ), $linkDetails['attribs'], $linkDetails['query'], $linkDetails['options']