Don't add language button to sticky header on pages without languages in content
In Commons languages appear in sidebar. The language button shouldn't show in the sticky header on these wikis Bug: T297362 Change-Id: I17d283a7c0ad20bdcaf39b234a7fe766880ab28a
This commit is contained in:
parent
326a9db5e3
commit
983437312b
|
@ -416,7 +416,8 @@ class SkinVector extends SkinMustache {
|
|||
$btns[] = self::EDIT_VE_ICON;
|
||||
}
|
||||
return [
|
||||
'data-primary-action' => !$this->shouldHideLanguages() ? $this->getULSButtonData() : null,
|
||||
'data-primary-action' => $this->isLanguagesInContent() ?
|
||||
$this->getULSButtonData() : null,
|
||||
'data-button-start' => [
|
||||
'label' => $this->msg( 'search' ),
|
||||
'icon' => 'wikimedia-search',
|
||||
|
|
Loading…
Reference in New Issue