Index: branches/5.2.x/units/posts/post_eh.php =================================================================== diff -u -N -r15133 -r15140 --- branches/5.2.x/units/posts/post_eh.php (.../post_eh.php) (revision 15133) +++ branches/5.2.x/units/posts/post_eh.php (.../post_eh.php) (revision 15140) @@ -1,6 +1,6 @@ SetDBField('PosterAlias', $this->Conn->GetOne($sql)); // set post options - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ $options_map = $post_helper->getOptionsMap(); @@ -101,7 +101,7 @@ WHERE p.'.$object->IDField.' = '.$object->GetID(); $post_info = $this->Conn->GetRow($sql); - $perm_helper =& $this->Application->recallObject('PermissionsHelper'); + $perm_helper = $this->Application->recallObject('PermissionsHelper'); /* @var $perm_helper kPermissionsHelper */ $is_owner = $post_info['CreatedById'] == $this->Application->RecallVar('user_id'); @@ -131,7 +131,7 @@ return; } - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ $options_map = $post_helper->getOptionsMap(); @@ -190,7 +190,7 @@ $object =& $event->getObject(); /* @var $object kDBItem */ - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ $options_map = $post_helper->getOptionsMap(); @@ -218,14 +218,14 @@ $parent_prefix = $this->Application->getUnitOption($event->Prefix, 'ParentPrefix'); - $main_object =& $this->Application->recallObject($parent_prefix); + $main_object = $this->Application->recallObject($parent_prefix); /* @var $main_object kCatDBItem */ // update user posts counter $user_posts = $this->Application->RecallPersistentVar('bb_posts'); $this->Application->StorePersistentVar('bb_posts', $user_posts + 1); - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ $category_id = $this->Application->GetVar('m_cat_id'); @@ -343,7 +343,7 @@ return; } - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ // update posts count in topic @@ -356,7 +356,7 @@ $this->Conn->Query($sql); - $main_object =& $this->Application->recallObject('bb.-item', null, Array ('skip_autoload' => true)); + $main_object = $this->Application->recallObject('bb.-item', null, Array ('skip_autoload' => true)); /* @var $main_object kCatDBItem */ $main_object->Load($topic_id); @@ -430,7 +430,7 @@ $object =& $event->getObject(); /* @var $object kDBItem */ - $source_post =& $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true)); + $source_post = $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true)); /* @var $source_post kDBItem */ $source_post->Load($reply_to);