mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
Don't change function signature of buildSidebar
Rename buildSidebar to getTemplateDataSidebar to reflect what it is doing in Vector rather than overloading it with template data generation. Changing the return value has consequences on refactors inside core a Skin::buildSidebar returns an array not an associative array. Change-Id: I0a4913c21af6ac3f5259cee8583aa121756251c1
This commit is contained in:
parent
f5323d9bf1
commit
d61cae0086
|
@ -136,7 +136,7 @@ class SkinVector extends SkinMustache {
|
|||
'data-logos' => ResourceLoaderSkinModule::getAvailableLogos( $this->getConfig() ),
|
||||
'main-page-href' => $mainPageHref,
|
||||
|
||||
'data-sidebar' => $this->buildSidebar(),
|
||||
'data-sidebar' => $this->getTemplateDataSidebar(),
|
||||
'sidebar-visible' => $this->isSidebarVisible(),
|
||||
] + $this->getMenuProps();
|
||||
|
||||
|
@ -253,9 +253,9 @@ class SkinVector extends SkinMustache {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public function buildSidebar() {
|
||||
private function getTemplateDataSidebar() {
|
||||
$skin = $this;
|
||||
$portals = parent::buildSidebar();
|
||||
$portals = $this->buildSidebar();
|
||||
$props = [];
|
||||
$languages = null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue