mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-27 15:40:15 +00:00
Revert "Fix missing wikibase link in Minerva sidebar"
This reverts commit 32bf2d725e
.
Reason for revert: PHP Notice: Undefined index: id
Bug: T66315
Change-Id: Ic792cd3f65e9ac1192db1388389a8af56a3803e2
This commit is contained in:
parent
32bf2d725e
commit
19d5b1e82c
|
@ -170,14 +170,6 @@ class SkinMinerva extends SkinMustache {
|
|||
$sidebar = $this->buildSidebar();
|
||||
$actions = $nav['actions'] ?? [];
|
||||
$views = $nav['views'] ?? [];
|
||||
// See T66315: Wikibase link is being moved to the otherprojects sidebar.
|
||||
// Since the other projects are not displayed in Minerva, we must manually add it back to the toolbox.
|
||||
$wikibaseLink = array_filter( $sidebar[ 'wikibase-otherprojects' ] ?? [], static function ( $sitelink ) {
|
||||
return $sitelink[ 'id' ] === 't-wikibase';
|
||||
} );
|
||||
if ( $wikibaseLink ) {
|
||||
$sidebar['TOOLBOX']['wikibase'] = $wikibaseLink[0];
|
||||
}
|
||||
return $pageActionsDirector->buildMenu( $sidebar['TOOLBOX'], $actions, $views );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue