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:
Hashar 2024-09-05 14:37:53 +00:00 committed by Gerrit Code Review
parent 32bf2d725e
commit 19d5b1e82c

View file

@ -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 );
}