Index: branches/5.2.x/core/units/reviews/reviews_event_handler.php =================================================================== diff -u -N -r15126 -r15130 --- branches/5.2.x/core/units/reviews/reviews_event_handler.php (.../reviews_event_handler.php) (revision 15126) +++ branches/5.2.x/core/units/reviews/reviews_event_handler.php (.../reviews_event_handler.php) (revision 15130) @@ -1,6 +1,6 @@ Special == 'product' && !$this->Application->isAdmin ) { // rev.product should auto-link @@ -40,7 +40,7 @@ * @return bool * @access public */ - public function CheckPermission(kEvent &$event) + public function CheckPermission(kEvent $event) { if ( $event->Name == 'OnAddReview' || $event->Name == 'OnCreate' ) { $perm_helper =& $this->Application->recallObject('PermissionsHelper'); @@ -114,7 +114,7 @@ * @param kEvent $event * @return int */ - function _getReviewCategory(&$event) + function _getReviewCategory($event) { $items_info = $this->Application->GetVar($event->getPrefixSpecial()); @@ -160,7 +160,7 @@ * * @param kEvent $event */ - function getPermPrefix(&$event) + function getPermPrefix($event) { $main_prefix = $this->Application->GetTopmostPrefix($event->Prefix, true); // this will return LINK for l, ARTICLE for n, TOPIC for bb, PRODUCT for p @@ -175,7 +175,7 @@ * @access protected * @see OnListBuild */ - protected function SetCustomQuery(kEvent &$event) + protected function SetCustomQuery(kEvent $event) { parent::SetCustomQuery($event); @@ -229,7 +229,7 @@ * * @param kEvent $event */ - function OnAddReview(&$event) + function OnAddReview($event) { $event->CallSubEvent('OnCreate'); } @@ -240,7 +240,7 @@ * @param kEvent $event * @return int */ - function getReviewStatus(&$event) + function getReviewStatus($event) { $parent_prefix = $this->Application->getUnitOption($event->Prefix, 'ParentPrefix'); $main_object =& $this->Application->recallObject($parent_prefix); @@ -265,7 +265,7 @@ * @return void * @access protected */ - protected function OnBeforeItemCreate(kEvent &$event) + protected function OnBeforeItemCreate(kEvent $event) { parent::OnBeforeItemCreate($event); @@ -314,7 +314,7 @@ * @return void * @access protected */ - protected function OnBeforeItemUpdate(kEvent &$event) + protected function OnBeforeItemUpdate(kEvent $event) { parent::OnBeforeItemUpdate($event); @@ -335,7 +335,7 @@ * @return void * @access protected */ - protected function OnAfterItemCreate(kEvent &$event) + protected function OnAfterItemCreate(kEvent $event) { parent::OnAfterItemCreate($event); @@ -373,7 +373,7 @@ * @return void * @access protected */ - protected function OnAfterItemUpdate(kEvent &$event) + protected function OnAfterItemUpdate(kEvent $event) { parent::OnAfterItemUpdate($event); @@ -402,7 +402,7 @@ * @param kEvent $event * @return kCatDBItem */ - function _loadMainObject(&$event) + function _loadMainObject($event) { $object =& $event->getObject(); /* @var $object kDBItem */ @@ -422,7 +422,7 @@ * * @param kEvent $event */ - function updateSubitemCounters(&$event) + function updateSubitemCounters($event) { if ( $event->Special == '-item' ) { // ignore Main Item Copy/Pasting and Deleting @@ -515,7 +515,7 @@ * @return void * @access protected */ - protected function OnAfterItemDelete(kEvent &$event) + protected function OnAfterItemDelete(kEvent $event) { parent::OnAfterItemDelete($event); @@ -529,7 +529,7 @@ * @return void * @access protected */ - protected function OnCreate(kEvent &$event) + protected function OnCreate(kEvent $event) { parent::OnCreate($event); @@ -572,7 +572,7 @@ * @return void * @access protected */ - protected function OnAfterConfigRead(kEvent &$event) + protected function OnAfterConfigRead(kEvent $event) { parent::OnAfterConfigRead($event); @@ -624,7 +624,7 @@ * @return void * @access protected */ - protected function OnSetPerPage(kEvent &$event) + protected function OnSetPerPage(kEvent $event) { parent::OnSetPerPage($event);