Index: branches/5.2.x/core/units/themes/themes_eh.php =================================================================== diff -u -N -r14244 -r14628 --- branches/5.2.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 14244) +++ branches/5.2.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 14628) @@ -1,6 +1,6 @@ Name == 'OnItemBuild') { // check permission without using $event->getSection(), @@ -107,12 +109,14 @@ * Also rebuilds theme files, when enabled theme is saved * * @param kEvent $event + * @return void + * @access protected */ - function OnSave(&$event) + protected function OnSave(&$event) { parent::OnSave($event); - if (($event->status != kEvent::erSUCCESS) || !$event->getEventParam('ids')) { + if ( ($event->status != kEvent::erSUCCESS) || !$event->getEventParam('ids') ) { return ; } @@ -126,7 +130,7 @@ WHERE ' . $id_field . ' IN (' . $ids . ') AND (Enabled = 1)'; $enabled_themes = $this->Conn->GetOne($sql); - if ($enabled_themes) { + if ( $enabled_themes ) { $rebuild_event = new kEvent('adm:OnRebuildThemes'); $this->Application->HandleEvent($rebuild_event); } @@ -163,8 +167,11 @@ * Apply system filter to themes list * * @param kEvent $event + * @return void + * @access protected + * @see kDBEventHandler::OnListBuild() */ - function SetCustomQuery(&$event) + protected function SetCustomQuery(&$event) { parent::SetCustomQuery($event);