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:
jdlrobson 2021-12-09 12:07:56 -08:00 committed by Jdlrobson
parent 326a9db5e3
commit 983437312b
1 changed files with 2 additions and 1 deletions

View File

@ -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',