Merge "Vector should not call BaseTemplate::getToolbox"

This commit is contained in:
jenkins-bot 2020-06-11 21:27:50 +00:00 committed by Gerrit Code Review
commit 58aa874951
1 changed files with 4 additions and 9 deletions

View File

@ -263,13 +263,7 @@ class VectorTemplate extends BaseTemplate {
$skin = $this->getSkin();
$portals = $skin->buildSidebar();
$props = [];
// Force the rendering of the following portals
if ( !isset( $portals['TOOLBOX'] ) ) {
$portals['TOOLBOX'] = true;
}
if ( !isset( $portals['LANGUAGES'] ) ) {
$portals['LANGUAGES'] = true;
}
// Render portals
foreach ( $portals as $name => $content ) {
if ( $content === false ) {
@ -283,8 +277,9 @@ class VectorTemplate extends BaseTemplate {
case 'SEARCH':
break;
case 'TOOLBOX':
$toolbox = $portals['TOOLBOX'];
$portal = $this->getMenuData(
'tb', $this->getToolbox(), self::MENU_TYPE_PORTAL
'tb', $toolbox, self::MENU_TYPE_PORTAL
);
// Run deprecated hooks.
$vectorTemplate = $this;
@ -300,7 +295,7 @@ class VectorTemplate extends BaseTemplate {
];
break;
case 'LANGUAGES':
$languages = $skin->getLanguages();
$languages = $portals['LANGUAGES'];
$portal = $this->getMenuData(
'lang',
$languages,