Limit ULSPosition check to non-Vector 2022 skins

I'm not sure what this is for, but it's definitely not needed
in Vector 2022 skin. It also prevents the uls-after-portlet-link
element from appearing inside the language button when ULS is disabled.

Bug: T275147
Change-Id: I8f6c1361040b72107f2d45bfc18e22d6b8f2021c
This commit is contained in:
Jon Robson
2022-07-27 21:00:53 +01:00
committed by jenkins-bot
parent 4afaa67bea
commit 06091efcd0

View File

@@ -485,7 +485,8 @@ class Hooks implements
return;
}
if ( $this->config->get( 'ULSPosition' ) !== 'interlanguage' ) {
// @todo: document what this block is for.
if ( $skin->getSkinName() !== 'vector-2022' && $this->config->get( 'ULSPosition' ) !== 'interlanguage' ) {
return;
}
@@ -494,7 +495,7 @@ class Hooks implements
}
// An empty span will force the language portal to always display in
// the skins that support it! e.g. Vector.
// the skins that support it! e.g. Vector. (T275147)
if ( count( $skin->getLanguages() ) === 0 ) {
// If no languages force it on.
$content .= Html::element(