mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 02:13:49 +00:00
Merge "Remove usage of SkinTemplate::injectLegacyMenusIntoPersonalTools()"
This commit is contained in:
commit
2f61dfc242
|
@ -223,8 +223,7 @@ class SkinMinerva extends SkinMustache {
|
|||
$services = MediaWikiServices::getInstance();
|
||||
/** @var \MediaWiki\Minerva\Menu\User\UserMenuDirector $userMenuDirector */
|
||||
$userMenuDirector = $services->getService( 'Minerva.Menu.UserMenuDirector' );
|
||||
$personalUrls = isset( $nav['user-menu'] ) ? $this->injectLegacyMenusIntoPersonalTools( $nav ) : [];
|
||||
$personalTools = $this->getSkin()->getPersonalToolsForMakeListItem( $personalUrls );
|
||||
$personalTools = $this->getSkin()->getPersonalToolsForMakeListItem( $nav['user-menu'] ?? [] );
|
||||
|
||||
return $userMenuDirector->renderMenuData( $personalTools );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue