Index: branches/5.2.x/core/units/stylesheets/stylesheets_event_handler.php =================================================================== diff -u -N -r14244 -r14628 --- branches/5.2.x/core/units/stylesheets/stylesheets_event_handler.php (.../stylesheets_event_handler.php) (revision 14244) +++ branches/5.2.x/core/units/stylesheets/stylesheets_event_handler.php (.../stylesheets_event_handler.php) (revision 14628) @@ -1,6 +1,6 @@ getObject( Array('skip_autoload' => true) ); - $object->SwitchToLive(); + /** + * [HOOK] Compile stylesheet file based on theme definitions + * + * @param kEvent $event + * @return void + * @access protected + */ + protected function OnCompileStylesheet(&$event) + { + $object =& $event->getObject( Array ('skip_autoload' => true) ); + /* @var $object StylesheetsItem */ - $ids = explode(',', $event->MasterEvent->getEventParam('ids') ); + $object->SwitchToLive(); - if(!$ids) return false; - foreach($ids as $id) - { - $object->Load($id); - $object->Compile(); - } + $ids = explode(',', $event->MasterEvent->getEventParam('ids')); + + if ( !$ids ) { + return ; } - } \ No newline at end of file + + foreach ($ids as $id) { + $object->Load($id); + $object->Compile(); + } + } +} \ No newline at end of file