Index: branches/5.2.x/core/units/phrases/phrases_event_handler.php =================================================================== diff -u -N -r15116 -r15130 --- branches/5.2.x/core/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 15116) +++ branches/5.2.x/core/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 15130) @@ -1,6 +1,6 @@ Special == 'import' || $event->Special == 'export' ) { @@ -65,7 +65,7 @@ * @return bool * @access public */ - public function CheckPermission(kEvent &$event) + public function CheckPermission(kEvent $event) { if ( !$this->Application->isAdmin && $this->Application->isDebugMode(false) && kUtil::constOn('DBG_PHRASES') ) { $allow_events = Array ('OnCreate', 'OnUpdate'); @@ -83,7 +83,7 @@ * * @param kEvent $event */ - function OnPreparePhrase(&$event) + function OnPreparePhrase($event) { $label = $this->Application->GetVar($event->getPrefixSpecial() . '_label'); @@ -129,7 +129,7 @@ * @return void * @access protected */ - protected function OnPreCreate(kEvent &$event) + protected function OnPreCreate(kEvent $event) { parent::OnPreCreate($event); @@ -146,7 +146,7 @@ * @return void * @access protected */ - protected function OnNew(kEvent &$event) + protected function OnNew(kEvent $event) { parent::OnNew($event); @@ -209,7 +209,7 @@ * @return void * @access protected */ - protected function OnCreate(kEvent &$event) + protected function OnCreate(kEvent $event) { if ( $this->Application->GetVar($event->Prefix . '_label') ) { $object =& $event->getObject(Array ('skip_autoload' => true)); @@ -232,7 +232,7 @@ * @return void * @access protected */ - protected function OnUpdate(kEvent &$event) + protected function OnUpdate(kEvent $event) { if ( $this->Application->GetVar($event->Prefix . '_label') ) { $this->returnToOriginalTemplate($event); @@ -248,7 +248,7 @@ * @return void * @access protected */ - protected function returnToOriginalTemplate(kEvent &$event) + protected function returnToOriginalTemplate(kEvent $event) { $next_template = $this->Application->GetVar('next_template'); @@ -265,7 +265,7 @@ * @return void * @access protected */ - protected function OnBeforeItemCreate(kEvent &$event) + protected function OnBeforeItemCreate(kEvent $event) { parent::OnBeforeItemCreate($event); @@ -299,7 +299,7 @@ * @return void * @access protected */ - protected function OnBeforeItemUpdate(kEvent &$event) + protected function OnBeforeItemUpdate(kEvent $event) { parent::OnBeforeItemUpdate($event); @@ -311,7 +311,7 @@ * * @param kEvent $event */ - function _phraseChanged(&$event) + function _phraseChanged($event) { $object =& $event->getObject(); /* @var $object kDBItem */ @@ -379,7 +379,7 @@ * @return void * @access protected */ - protected function OnAfterConfigRead(kEvent &$event) + protected function OnAfterConfigRead(kEvent $event) { parent::OnAfterConfigRead($event); @@ -420,7 +420,7 @@ * @return void * @access protected */ - protected function OnPreSaveAndChangeLanguage(kEvent &$event) + protected function OnPreSaveAndChangeLanguage(kEvent $event) { $label = $this->Application->GetVar($event->getPrefixSpecial() . '_label'); @@ -459,7 +459,7 @@ * @return void * @access protected */ - protected function OnEdit(kEvent &$event) + protected function OnEdit(kEvent $event) { parent::OnEdit($event); @@ -474,7 +474,7 @@ * @return void * @access protected */ - protected function OnExportPhrases(kEvent &$event) + protected function OnExportPhrases(kEvent $event) { if ( $this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1) ) { $event->status = kEvent::erFAIL;