Hide ULS language settings in Minerva skin
Bug: T259037 Change-Id: Id62fd434f5974834292bda09e8436efef97cb234
This commit is contained in:
committed by
jenkins-bot
parent
86719e150c
commit
f13d28f4d1
@@ -437,6 +437,12 @@ class UniversalLanguageSelectorHooks {
|
|||||||
public static function onGetPreferences( $user, array &$preferences ) {
|
public static function onGetPreferences( $user, array &$preferences ) {
|
||||||
global $wgULSCompactLanguageLinksBetaFeature;
|
global $wgULSCompactLanguageLinksBetaFeature;
|
||||||
|
|
||||||
|
// T259037: Does not work well on Minerva
|
||||||
|
$skin = RequestContext::getMain()->getSkin();
|
||||||
|
if ( $skin->getSkinName() === 'minerva' ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$preferences['uls-preferences'] = [
|
$preferences['uls-preferences'] = [
|
||||||
'type' => 'api',
|
'type' => 'api',
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user