Index: branches/5.2.x/units/topics/topics_tag_processor.php =================================================================== diff -u -N -r14252 -r15155 --- branches/5.2.x/units/topics/topics_tag_processor.php (.../topics_tag_processor.php) (revision 14252) +++ branches/5.2.x/units/topics/topics_tag_processor.php (.../topics_tag_processor.php) (revision 15155) @@ -1,6 +1,6 @@ getObject($params); + $object = $this->getObject($params); // -1 - don't count post created together with topic return $object->GetDBField('Posts') ? $object->GetDBField('Posts') - 1 : 0; @@ -64,7 +64,7 @@ */ function IsLocked($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); return $object->GetDBField('TopicType') == 0; } Index: branches/5.2.x/units/posts/post_tp.php =================================================================== diff -u -N -r15140 -r15155 --- branches/5.2.x/units/posts/post_tp.php (.../post_tp.php) (revision 15140) +++ branches/5.2.x/units/posts/post_tp.php (.../post_tp.php) (revision 15155) @@ -1,6 +1,6 @@ getObject($params); + $object = $this->getObject($params); $params['user_id'] = $object->GetDBField('CreatedById'); return $this->Application->ProcessParsedTag('m', 'Link', $params); @@ -47,7 +47,7 @@ { static $posters = null; - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $poster = $this->Application->recallObject('u.poster', null, Array('skip_autoload' => true)); @@ -84,7 +84,7 @@ */ function PosterFound($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); return $object->GetDBField('CreatedById') > 0; } @@ -99,7 +99,7 @@ { static $posts_count = null; - $object =& $this->getObject($params); + $object = $this->getObject($params); if (!isset($posts_count)) { $poster_ids = array_unique($object->GetCol('CreatedById')); @@ -115,7 +115,7 @@ function PostSubject($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ @@ -125,7 +125,7 @@ function PostBody($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ @@ -151,7 +151,7 @@ */ function ShowPostSignature($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $post_options = $object->GetDBField('Options'); $post_helper = $this->Application->recallObject('PostHelper'); @@ -179,7 +179,7 @@ */ function PostSignature($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ @@ -203,7 +203,7 @@ { static $user_signatures = null; - $object =& $this->getObject(); + $object = $this->getObject(); if (!isset($user_signatures)) { $poster_ids = array_unique($object->GetCol('CreatedById')); @@ -233,7 +233,7 @@ function ReplyQuotedLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $params['pass'] = 'm,bb'; $params['reply_to'] = $object->GetID(); @@ -262,7 +262,7 @@ /* @var $perm_helper kPermissionsHelper */ $params['raise_warnings'] = 0; - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ // 1. category restriction @@ -299,7 +299,7 @@ */ function PageLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var kDBList */ $parent_info = $object->getLinkedInfo(); Index: branches/5.2.x/units/polls/poll_tp.php =================================================================== diff -u -N -r15140 -r15155 --- branches/5.2.x/units/polls/poll_tp.php (.../poll_tp.php) (revision 15140) +++ branches/5.2.x/units/polls/poll_tp.php (.../poll_tp.php) (revision 15155) @@ -1,6 +1,6 @@ getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ if (!$object->GetDBField('AllowMultipleVotings')) { @@ -45,7 +45,7 @@ */ function HasCommented($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $spam_helper = $this->Application->recallObject('SpamHelper'); @@ -64,7 +64,7 @@ */ function PrintPoll($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $sql = 'SELECT COUNT(AnswerNum), AnswerNum FROM '.TABLE_PREFIX.'PollsStatistics @@ -109,7 +109,7 @@ */ function CommentsLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $params['pass'] = 'm,poll'; $params['poll_id'] = $object->GetID(); Index: branches/5.2.x/units/private_messages/private_message_tp.php =================================================================== diff -u -N -r15140 -r15155 --- branches/5.2.x/units/private_messages/private_message_tp.php (.../private_message_tp.php) (revision 15140) +++ branches/5.2.x/units/private_messages/private_message_tp.php (.../private_message_tp.php) (revision 15155) @@ -1,6 +1,6 @@ getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ return $object->GetDBField('Status') < PM_STATUS_READ; @@ -60,7 +60,7 @@ function MessageSubject($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $params['field'] = 'Subject'; @@ -75,7 +75,7 @@ function MessageBody($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $post_helper = $this->Application->recallObject('PostHelper'); /* @var $post_helper PostHelper */ @@ -110,7 +110,7 @@ */ function CanReplyMessage($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ return $object->GetDBField('FromId') != $this->Application->RecallVar('user_id'); @@ -123,7 +123,7 @@ */ function MarkAsRead($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ if ($object->GetDBField('Status') < PM_STATUS_READ) { @@ -143,7 +143,7 @@ $user_field = strtolower($params['type']) == 'from' ? 'FromId' : 'ToId'; unset($params['type']); - $object =& $this->getObject($params); + $object = $this->getObject($params); $params['user_id'] = $object->GetDBField($user_field); return $this->Application->ProcessParsedTag('m', 'Link', $params);