Index: branches/5.2.x/core/units/page_revisions/page_revision_eh.php =================================================================== diff -u -N -r15065 -r15130 --- branches/5.2.x/core/units/page_revisions/page_revision_eh.php (.../page_revision_eh.php) (revision 15065) +++ branches/5.2.x/core/units/page_revisions/page_revision_eh.php (.../page_revision_eh.php) (revision 15130) @@ -23,7 +23,7 @@ * @return bool * @access public */ - public function CheckPermission(kEvent &$event) + public function CheckPermission(kEvent $event) { if ( $event->Name == 'OnItemBuild' ) { return true; @@ -58,7 +58,7 @@ * @return void * @access protected */ - protected function SetCustomQuery(kEvent &$event) + protected function SetCustomQuery(kEvent $event) { parent::SetCustomQuery($event); @@ -88,7 +88,7 @@ * @return int * @access public */ - public function getPassedID(kEvent &$event) + public function getPassedID(kEvent $event) { if ( $event->Special == 'current' ) { $page =& $this->Application->recallObject('st.-virtual'); @@ -132,7 +132,7 @@ * @return void * @access protected */ - protected function OnBeforeItemCreate(kEvent &$event) + protected function OnBeforeItemCreate(kEvent $event) { parent::OnBeforeItemCreate($event); @@ -154,7 +154,7 @@ * @return void * @access protected */ - protected function OnBeforeItemUpdate(kEvent &$event) + protected function OnBeforeItemUpdate(kEvent $event) { parent::OnBeforeItemUpdate($event); @@ -174,7 +174,7 @@ * @return void * @access protected */ - protected function OnAfterItemCreate(kEvent &$event) + protected function OnAfterItemCreate(kEvent $event) { parent::OnAfterItemCreate($event); @@ -206,7 +206,7 @@ * @return void * @access protected */ - protected function OnAfterItemUpdate(kEvent &$event) + protected function OnAfterItemUpdate(kEvent $event) { parent::OnAfterItemUpdate($event); @@ -230,7 +230,7 @@ * * @param kEvent $event */ - function OnGetInfo(&$event) + function OnGetInfo($event) { $event->status = kEvent::erSTOP; @@ -252,7 +252,7 @@ * @return void * @access protected */ - protected function OnSave(kEvent &$event) + protected function OnSave(kEvent $event) { $revision_id = $this->getCurrentDraftRevision($event); @@ -282,7 +282,7 @@ * * @param kEvent $event */ - function OnDiscard(&$event) + function OnDiscard($event) { $revision_id = $this->getCurrentDraftRevision($event); @@ -301,7 +301,7 @@ * * @param kEvent $event */ - function OnPublish(&$event) + function OnPublish($event) { $revision =& $this->Application->recallObject('page-revision.current'); /* @var $revision kDBItem */ @@ -321,7 +321,7 @@ * * @param kEvent $event */ - function OnDecline(&$event) + function OnDecline($event) { $revision =& $this->Application->recallObject('page-revision.current'); /* @var $revision kDBItem */ @@ -342,7 +342,7 @@ * @param kEvent $event * @return int */ - function getCurrentDraftRevision(&$event) + function getCurrentDraftRevision($event) { $where_clause = Array ( 'IsDraft = 1', @@ -363,7 +363,7 @@ * @param kEvent $event * @return int */ - function getNextAvailableRevision(&$event) + function getNextAvailableRevision($event) { $sql = 'SELECT MAX(RevisionNumber) FROM ' . $this->Application->getUnitOption($event->Prefix, 'TableName') . '