Index: branches/5.2.x/core/units/images/image_event_handler.php =================================================================== diff -u -N -r15065 -r15130 --- branches/5.2.x/core/units/images/image_event_handler.php (.../image_event_handler.php) (revision 15065) +++ branches/5.2.x/core/units/images/image_event_handler.php (.../image_event_handler.php) (revision 15130) @@ -1,6 +1,6 @@ Special == 'list' && !$this->Application->isAdmin ) { // ListImages aggregated tag uses this special @@ -83,7 +83,7 @@ * @return void * @access protected */ - protected function customProcessing(kEvent &$event, $type) + protected function customProcessing(kEvent $event, $type) { $object =& $event->getObject(); /* @var $object kDBItem */ @@ -149,7 +149,7 @@ * @return void * @access protected */ - protected function ImageAction(&$event) + protected function ImageAction($event) { $id = $event->getEventParam('id'); @@ -249,7 +249,7 @@ * @return void * @access protected */ - protected function OnSetPrimary(&$event) + protected function OnSetPrimary($event) { $object =& $event->getObject(); /* @var $object kDBItem */ @@ -265,7 +265,7 @@ * @return void * @access protected */ - protected function OnBeforeItemUpdate(kEvent &$event) + protected function OnBeforeItemUpdate(kEvent $event) { parent::OnBeforeItemUpdate($event); @@ -279,7 +279,7 @@ * @return void * @access protected */ - protected function OnAfterItemCreate(kEvent &$event) + protected function OnAfterItemCreate(kEvent $event) { parent::OnAfterItemCreate($event); @@ -296,7 +296,7 @@ * * @param kEvent $event */ - function processImageStatus(&$event) + function processImageStatus($event) { $object =& $event->getObject(); /* @var $object kDBItem */ @@ -330,7 +330,7 @@ * @access protected * @see kDBEventHandler::OnListBuild() */ - protected function SetCustomQuery(kEvent &$event) + protected function SetCustomQuery(kEvent $event) { parent::SetCustomQuery($event); @@ -370,7 +370,7 @@ * @param kEvent $event * @return Array */ - function getTypeClauses(&$event) + function getTypeClauses($event) { $type_clauses = Array (); @@ -386,7 +386,7 @@ * * @param kEvent $event */ - function OnCleanImages(&$event) + function OnCleanImages($event) { // 1. get images, that are currently in use $active_images = $this->_getActiveImages( $this->Application->getUnitOption('img', 'TableName') ); @@ -477,7 +477,7 @@ * * @param kEvent $event */ - function OnCleanResizedImages(&$event) + function OnCleanResizedImages($event) { $images = glob(FULL_PATH . IMAGES_PATH . 'resized/*.*'); if ($images) {