Index: branches/5.2.x/units/posts/post_tp.php =================================================================== diff -u -N -r15008 -r15140 --- branches/5.2.x/units/posts/post_tp.php (.../post_tp.php) (revision 15008) +++ branches/5.2.x/units/posts/post_tp.php (.../post_tp.php) (revision 15140) @@ -1,6 +1,6 @@ Application->getUnitOption($this->Prefix, 'ParentPrefix'); - $main_object =& $this->Application->recallObject($parent_prefix); + $main_object = $this->Application->recallObject($parent_prefix); /* @var $main_object kCatDBItem */ if ($main_object->isLoaded()) { @@ -50,7 +50,7 @@ $object =& $this->getObject($params); /* @var $object kDBItem */ - $poster =& $this->Application->recallObject('u.poster', null, Array('skip_autoload' => true)); + $poster = $this->Application->recallObject('u.poster', null, Array('skip_autoload' => true)); /* @var $poster UsersItem */ if ( !isset($posters) ) { @@ -117,7 +117,7 @@ { $object =& $this->getObject($params); - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ return $post_helper->CensorText( $object->GetDBField('Subject') ); @@ -127,7 +127,7 @@ { $object =& $this->getObject($params); - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ $body = $object->GetDBField('PostingText'); @@ -154,7 +154,7 @@ $object =& $this->getObject($params); $post_options = $object->GetDBField('Options'); - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ // show poster signature in this post @@ -181,7 +181,7 @@ { $object =& $this->getObject($params); - $post_helper =& $this->Application->recallObject('PostHelper'); + $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ $sub_blocks = Array ( @@ -254,11 +254,11 @@ if (!isset($category_path)) { // get topic category $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix'); - $parent_item =& $this->Application->recallObject($parent_prefix, null, Array ('raise_warnings' => 0)); + $parent_item = $this->Application->recallObject($parent_prefix, null, Array ('raise_warnings' => 0)); $category_path = $parent_item->isLoaded() ? $parent_item->GetDBField('ParentPath') : $this->Application->GetVar('m_cat_id'); } - $perm_helper =& $this->Application->recallObject('PermissionsHelper'); + $perm_helper = $this->Application->recallObject('PermissionsHelper'); /* @var $perm_helper kPermissionsHelper */ $params['raise_warnings'] = 0; @@ -276,15 +276,15 @@ function CategoryItemCount($params) { - $count_helper =& $this->Application->recallObject('CountHelper'); + $count_helper = $this->Application->recallObject('CountHelper'); /* @var $count_helper kCountHelper */ return $count_helper->CategoryItemCount('bb', $params, 'SUM(Posts)'); // - COUNT(TopicId) } function ItemCount($params) { - $count_helper =& $this->Application->recallObject('CountHelper'); + $count_helper = $this->Application->recallObject('CountHelper'); /* @var $count_helper kCountHelper */ $today_only = isset($params['today']) && $params['today'];