Index: branches/5.2.x/core/units/themes/themes_eh.php =================================================================== diff -u -N -r15065 -r15130 --- branches/5.2.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 15065) +++ branches/5.2.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 15130) @@ -1,6 +1,6 @@ Name == 'OnItemBuild' ) { // check permission without using $event->getSection(), @@ -57,7 +57,7 @@ * * @param kEvent $event */ - function OnSetPrimary(&$event) + function OnSetPrimary($event) { if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { $event->status = kEvent::erFAIL; @@ -69,8 +69,7 @@ $id = array_shift($ids); $this->setPrimary($id); - $rebuild_event = new kEvent('adm:OnRebuildThemes'); - $this->Application->HandleEvent($rebuild_event); + $this->Application->HandleEvent(new kEvent('adm:OnRebuildThemes')); } $this->clearSelectedIDs($event); @@ -99,7 +98,7 @@ * @return void * @access protected */ - protected function OnAfterCopyToLive(kEvent &$event) + protected function OnAfterCopyToLive(kEvent $event) { parent::OnAfterCopyToLive($event); @@ -120,7 +119,7 @@ * @return void * @access protected */ - protected function OnSave(kEvent &$event) + protected function OnSave(kEvent $event) { parent::OnSave($event); @@ -139,8 +138,7 @@ $enabled_themes = $this->Conn->GetOne($sql); if ( $enabled_themes ) { - $rebuild_event = new kEvent('adm:OnRebuildThemes'); - $this->Application->HandleEvent($rebuild_event); + $this->Application->HandleEvent(new kEvent('adm:OnRebuildThemes')); } } @@ -149,7 +147,7 @@ * * @param kEvent $event */ - function OnChangeTheme(&$event) + function OnChangeTheme($event) { if ($this->Application->isAdminUser) { // for structure theme dropdown @@ -172,7 +170,7 @@ * @access protected * @see kDBEventHandler::OnListBuild() */ - protected function SetCustomQuery(kEvent &$event) + protected function SetCustomQuery(kEvent $event) { parent::SetCustomQuery($event);