Make hook parameters use consistent name as the Hook interface
Param 'bar' was renamed to more descriptive 'sidebar' in the interface. The change should be reflected here. Change-Id: Icdb57a4f801272d408161503d330f3260291c579
This commit is contained in:
parent
ca6ec5a4ee
commit
7c1a46ba88
2 changed files with 4 additions and 4 deletions
|
|
@ -3071,8 +3071,8 @@ $specialSearch: The SpecialSearch object
|
|||
Warning: This hook is run on each display. You should consider to use
|
||||
'SkinBuildSidebar' that is aggressively cached.
|
||||
$skin: Skin object
|
||||
&$bar: Sidebar content
|
||||
Modify $bar to add or modify sidebar portlets.
|
||||
&$sidebar: Sidebar content
|
||||
Modify $sidebar to add or modify sidebar portlets.
|
||||
|
||||
'SiteNoticeAfter': After the sitenotice/anonnotice is composed.
|
||||
&$siteNotice: HTML sitenotice. Alter the contents of $siteNotice to add to/alter
|
||||
|
|
|
|||
|
|
@ -3424,10 +3424,10 @@ class HookRunner implements
|
|||
);
|
||||
}
|
||||
|
||||
public function onSidebarBeforeOutput( $skin, &$bar ) {
|
||||
public function onSidebarBeforeOutput( $skin, &$sidebar ) {
|
||||
return $this->container->run(
|
||||
'SidebarBeforeOutput',
|
||||
[ $skin, &$bar ]
|
||||
[ $skin, &$sidebar ]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue