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:
@@ -485,7 +485,8 @@ class Hooks implements
|
|||||||
return;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -494,7 +495,7 @@ class Hooks implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
// An empty span will force the language portal to always display in
|
// 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 ( count( $skin->getLanguages() ) === 0 ) {
|
||||||
// If no languages force it on.
|
// If no languages force it on.
|
||||||
$content .= Html::element(
|
$content .= Html::element(
|
||||||
|
|||||||
Reference in New Issue
Block a user