Index: custom/units/sections/users/e_user_tp.php =================================================================== --- custom/units/sections/users/e_user_tp.php (revision 15111) +++ custom/units/sections/users/e_user_tp.php (working copy) @@ -16,7 +16,7 @@ */ function PrintFormattedUserAddress($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $ret = ''; Index: custom/units/widgets/widget_tp.php =================================================================== --- custom/units/widgets/widget_tp.php (revision 15111) +++ custom/units/widgets/widget_tp.php (working copy) @@ -18,7 +18,7 @@ { return 'Hello world!'; } - + /** * Returns a link for editing product * @@ -27,20 +27,20 @@ */ function ItemEditLink($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBList */ - + $edit_template = $this->Application->getUnitOption($this->Prefix, 'AdminTemplatePath') . '/' . $this->Application->getUnitOption($this->Prefix, 'AdminTemplatePrefix') . 'edit'; - + $url_params = Array ( 'm_opener' => 'd', $this->Prefix.'_mode' => 't', $this->Prefix.'_event' => 'OnEdit', - $this->Prefix.'_id' => $object->GetID(), + $this->Prefix.'_id' => $object->GetID(), 'pass' => 'all,'.$this->Prefix, 'no_pass_through' => 1, ); - + return $this->Application->HREF($edit_template, '', $url_params); } Index: in-auction/units/category_listing/category_listing_tp.php =================================================================== --- in-auction/units/category_listing/category_listing_tp.php (revision 15139) +++ in-auction/units/category_listing/category_listing_tp.php (working copy) @@ -23,7 +23,7 @@ return $POST[$field.'_parent'] ? 'checked' : ''; } - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBitem */ return is_null($object->GetDBField($field)) ? 'checked' : ''; @@ -40,7 +40,7 @@ function GetSelectorHTML($params) { - $Object =& $this->getObject($params); + $Object = $this->getObject($params); $params['prefix'] = $this->Prefix; $CatSelectHelper = $this->Application->recallObject('CatSelectHelper'); /* @var $CatSelectHelper CatSelectHelper*/ @@ -49,7 +49,7 @@ function GetSelectorHTML2($params) { - $Object =& $this->getObject($params); + $Object = $this->getObject($params); $params['prefix'] = $this->Prefix; $CatSelectHelper = $this->Application->recallObject('CatSelectHelper'); /* @var $CatSelectHelper CatSelectHelper*/ @@ -58,7 +58,7 @@ function GetItemSpecificsHTML($params) { - $Object =& $this->getObject($params); + $Object = $this->getObject($params); $params['prefix'] = $this->Prefix; $CatSelectHelper = $this->Application->recallObject('CatSelectHelper'); /* @var $CatSelectHelper CatSelectHelper*/ Index: in-auction/units/error_log/error_log_tp.php =================================================================== --- in-auction/units/error_log/error_log_tp.php (revision 15111) +++ in-auction/units/error_log/error_log_tp.php (working copy) @@ -17,7 +17,7 @@ function PrintArrayField($params) { - $Object =& $this->getObject($params); + $Object = $this->getObject($params); return var_export(unserialize($Object->GetDBField($params['field'])), true); } } \ No newline at end of file Index: in-auction/units/listing/listing_tp.php =================================================================== --- in-auction/units/listing/listing_tp.php (revision 15139) +++ in-auction/units/listing/listing_tp.php (working copy) @@ -17,7 +17,7 @@ function EditProductLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $url_params = Array( 'm_opener' => 'd', @@ -38,7 +38,7 @@ */ function ClosingTime($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $listing_duration = $object->GetDBField('ListingType') == EBAY_LISTING_TYPE_AUCTION ? $object->GetDBField('AuctionListingDuration') : $object->GetDBField('StoreListingDuration'); // in days @@ -118,7 +118,7 @@ function ReplaceFieldValue($params) { // replace field value in current object - $object =& $this->getObject($params); + $object = $this->getObject($params); $field = $params['field']; $object->SetDBField($field, $this->GetEbayValue($field, $object->GetDBField('ProductsProductId'))); } @@ -175,7 +175,7 @@ function ComplexStatus($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); return $this->GetComplexStatus( $object->GetDBField('Status'), $object->GetField('Status'), @@ -221,7 +221,7 @@ function IsPartiallySold($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); return $this->GetIsPartiallySold( $object->GetDBField('Status'), $object->GetDBField('QuantitySold'), @@ -246,7 +246,7 @@ function EbayItemLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $connection_mode = ($this->Application->ConfigValue('eBay_ConnectionMode') == 1) ? 'Production' : 'Sandbox'; $link = $this->Application->ConfigValue('eBay_'.$connection_mode.'_Item_Link'); return str_replace('#ItemId#', $object->GetDBField('eBayListingId'), $link); Index: in-auction/units/product_listing/product_listing_tp.php =================================================================== --- in-auction/units/product_listing/product_listing_tp.php (revision 15139) +++ in-auction/units/product_listing/product_listing_tp.php (working copy) @@ -23,7 +23,7 @@ return $POST[$field.'_parent'] ? 'checked' : ''; } - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBitem */ return is_null($object->GetDBField($field)) ? 'checked' : ''; @@ -42,7 +42,7 @@ return $this->Application->RecallVar('preview_ebay_description'); // load objects // $ProductListing = $this->Application->recallObject('p-ebay'); - $ProductListing =& $this->getObject($params); + $ProductListing = $this->getObject($params); /* @var $ProductListing kDBItem */ @@ -80,7 +80,7 @@ function GetSelectorHTML($params) { - $Object =& $this->getObject($params); + $Object = $this->getObject($params); $params['prefix'] = $this->Prefix; $CatSelectHelper = $this->Application->recallObject('CatSelectHelper'); /* @var $CatSelectHelper CatSelectHelper*/ @@ -92,14 +92,14 @@ $ImagesList = $this->Application->recallObject('img','img_List'); /* @var $ImagesList kDBList*/ $image_id = $ImagesList->GetDBField('ImageId'); - $Object =& $this->getObject($params); + $Object = $this->getObject($params); $a_images = unserialize($Object->GetDBField('Images')); return (isset($a_images[$image_id]) ? $a_images[$image_id] : 0); } function GetSelectorHTML2($params) { - $Object =& $this->getObject($params); + $Object = $this->getObject($params); $params['prefix'] = $this->Prefix; $CatSelectHelper = $this->Application->recallObject('CatSelectHelper'); /* @var $CatSelectHelper CatSelectHelper*/ @@ -108,7 +108,7 @@ function GetItemSpecificsHTML($params) { - $Object =& $this->getObject($params); + $Object = $this->getObject($params); $params['prefix'] = $this->Prefix; $CatSelectHelper = $this->Application->recallObject('CatSelectHelper'); /* @var $CatSelectHelper CatSelectHelper*/ Index: in-bulletin/units/polls/poll_tp.php =================================================================== --- in-bulletin/units/polls/poll_tp.php (revision 15140) +++ in-bulletin/units/polls/poll_tp.php (working copy) @@ -24,7 +24,7 @@ */ function HasVoted($params) { - $object =& $this->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: in-bulletin/units/posts/post_tp.php =================================================================== --- in-bulletin/units/posts/post_tp.php (revision 15140) +++ in-bulletin/units/posts/post_tp.php (working copy) @@ -37,7 +37,7 @@ */ function ProfileLink($params) { - $object =& $this->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: in-bulletin/units/private_messages/private_message_tp.php =================================================================== --- in-bulletin/units/private_messages/private_message_tp.php (revision 15140) +++ in-bulletin/units/private_messages/private_message_tp.php (working copy) @@ -24,7 +24,7 @@ */ function IsNew($params) { - $object =& $this->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); Index: in-bulletin/units/topics/topics_tag_processor.php =================================================================== --- in-bulletin/units/topics/topics_tag_processor.php (revision 15111) +++ in-bulletin/units/topics/topics_tag_processor.php (working copy) @@ -50,7 +50,7 @@ */ function TopicReplies($params) { - $object =& $this->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: in-commerce/units/addresses/addresses_tag_processor.php =================================================================== --- in-commerce/units/addresses/addresses_tag_processor.php (revision 15141) +++ in-commerce/units/addresses/addresses_tag_processor.php (working copy) @@ -35,7 +35,7 @@ */ protected function PrintLocation($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $ret = ''; @@ -76,7 +76,7 @@ function IsProfileAddress($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return $object->GetDBField('IsProfileAddress'); Index: in-commerce/units/affiliate_payment_types/affiliate_payment_types_tp.php =================================================================== --- in-commerce/units/affiliate_payment_types/affiliate_payment_types_tp.php (revision 15141) +++ in-commerce/units/affiliate_payment_types/affiliate_payment_types_tp.php (working copy) @@ -33,7 +33,7 @@ $payment_type = $affiliate->GetDBField( $params['field'] ); if ( $payment_type ) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBList */ return $payment_type == $object->GetID(); Index: in-commerce/units/affiliate_payments/affiliate_payments_tag_processor.php =================================================================== --- in-commerce/units/affiliate_payments/affiliate_payments_tag_processor.php (revision 15111) +++ in-commerce/units/affiliate_payments/affiliate_payments_tag_processor.php (working copy) @@ -23,7 +23,7 @@ */ function UserLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $user_id = $object->GetDBField('PortalUserId'); if (!$user_id) { Index: in-commerce/units/affiliate_plans_items/affiliate_plans_items_tag_processor.php =================================================================== --- in-commerce/units/affiliate_plans_items/affiliate_plans_items_tag_processor.php (revision 15141) +++ in-commerce/units/affiliate_plans_items/affiliate_plans_items_tag_processor.php (working copy) @@ -31,7 +31,7 @@ function ItemIcon($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBList */ if ($object->GetDBField('ItemType') == 2) { Index: in-commerce/units/affiliates/affiliates_tag_processor.php =================================================================== --- in-commerce/units/affiliates/affiliates_tag_processor.php (revision 15141) +++ in-commerce/units/affiliates/affiliates_tag_processor.php (working copy) @@ -23,7 +23,7 @@ */ function GetAffiliateLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $params['affiliate'] = $object->GetDBField('AffiliateCode'); @@ -50,7 +50,7 @@ { $params['skip_autoload'] = true; - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $object->Load(array('PortalUserId' => $this->Application->RecallVar('user_id'))); @@ -106,7 +106,7 @@ */ function UserLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $user_id = $object->GetDBField('PortalUserId'); Index: in-commerce/units/coupon_items/coupon_items_tag_processor.php =================================================================== --- in-commerce/units/coupon_items/coupon_items_tag_processor.php (revision 15141) +++ in-commerce/units/coupon_items/coupon_items_tag_processor.php (working copy) @@ -31,7 +31,7 @@ function ItemIcon($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBList */ if ($object->GetDBField('ItemType') == 2) { Index: in-commerce/units/currencies/currencies_tag_processor.php =================================================================== --- in-commerce/units/currencies/currencies_tag_processor.php (revision 15141) +++ in-commerce/units/currencies/currencies_tag_processor.php (working copy) @@ -62,7 +62,7 @@ function CurrencyLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $params['pass'] = 'm,curr'; Index: in-commerce/units/discount_items/discount_items_tag_processor.php =================================================================== --- in-commerce/units/discount_items/discount_items_tag_processor.php (revision 15141) +++ in-commerce/units/discount_items/discount_items_tag_processor.php (working copy) @@ -31,7 +31,7 @@ function ItemIcon($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBList */ if ($object->GetDBField('ItemType') == 2) { Index: in-commerce/units/gateways/gw_tag_processor.php =================================================================== --- in-commerce/units/gateways/gw_tag_processor.php (revision 15141) +++ in-commerce/units/gateways/gw_tag_processor.php (working copy) @@ -43,7 +43,7 @@ function gwConfigValue($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $id = $object->GetID(); @@ -102,7 +102,7 @@ */ protected function PredefinedOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $block_params = $this->prepareTagParams($params); Index: in-commerce/units/gift_certificates/gift_certificates_tp.php =================================================================== --- in-commerce/units/gift_certificates/gift_certificates_tp.php (revision 15141) +++ in-commerce/units/gift_certificates/gift_certificates_tp.php (working copy) @@ -21,7 +21,7 @@ return 0; } - $object =& $this->getObject($params); + $object = $this->getObject($params); $sql = 'SELECT COUNT(OrderId) FROM '.TABLE_PREFIX.'Orders Index: in-commerce/units/manufacturers/manufacturers_tag_processor.php =================================================================== --- in-commerce/units/manufacturers/manufacturers_tag_processor.php (revision 15111) +++ in-commerce/units/manufacturers/manufacturers_tag_processor.php (working copy) @@ -44,7 +44,7 @@ function ManufacturerLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $params['pass'] = 'm,manuf'; $params['m_cat_id'] = 0; Index: in-commerce/units/order_items/order_items_tag_processor.php =================================================================== --- in-commerce/units/order_items/order_items_tag_processor.php (revision 15141) +++ in-commerce/units/order_items/order_items_tag_processor.php (working copy) @@ -32,7 +32,7 @@ function IsTangible($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return $object->GetDBField('Type') == PRODUCT_TYPE_TANGIBLE; @@ -40,7 +40,7 @@ function HasQty($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return in_array($object->GetDBField('Type'), Array (PRODUCT_TYPE_TANGIBLE, 6)); @@ -48,7 +48,7 @@ function HasDiscount($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return (float)$object->GetDBField('ItemDiscount') ? 1 : 0; @@ -56,14 +56,14 @@ function HasOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $item_data = @unserialize($object->GetDBField('ItemData')); return isset($item_data['Options']); } function PrintOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $item_data = @unserialize($object->GetDBField('ItemData')); @@ -140,7 +140,7 @@ function ProductsInStock($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); if (!$object->GetDBField('InventoryStatus')) { // unlimited count available @@ -254,7 +254,7 @@ function DisplayOptionsPricing($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ if ( $object->GetDBField('OptionsSelectionMode') == 1 ) { @@ -281,7 +281,7 @@ function RowIndex($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return $object->GetDBField('ProductId') . ':' . $object->GetDBField('OptionsSalt') . ':' . $object->GetDBField('BackOrderFlag'); @@ -289,7 +289,7 @@ function FreePromoShippingAvailable($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $order_helper = $this->Application->recallObject('OrderHelper'); Index: in-commerce/units/orders/orders_tag_processor.php =================================================================== --- in-commerce/units/orders/orders_tag_processor.php (revision 15141) +++ in-commerce/units/orders/orders_tag_processor.php (working copy) @@ -24,7 +24,7 @@ */ function PrintLocation($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $type = getArrayValue($params,'type'); if($type == 'Company') @@ -160,7 +160,7 @@ 'archived' => ORDER_STATUS_ARCHIVED, ); - $object =& $this->getObject($params); + $object = $this->getObject($params); $status = $object->GetDBField('Status'); $result = true; @@ -175,7 +175,7 @@ function ItemsInCart($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ if ( $object->GetDBField('Status') != ORDER_STATUS_INCOMPLETE || $object->GetID() == FAKE_ORDER_ID ) { @@ -192,7 +192,7 @@ function CartNotEmpty($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); if ($object->GetDBField('Status') != ORDER_STATUS_INCOMPLETE || $object->GetID() == FAKE_ORDER_ID) { return 0; @@ -216,7 +216,7 @@ function CartHasBackorders($params = Array ()) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $sql = 'SELECT COUNT(*) FROM ' . TABLE_PREFIX . 'OrderItems @@ -232,7 +232,7 @@ $o = ''; $limitations_cache = Array (); - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $ord_id = $object->GetID(); @@ -425,7 +425,7 @@ */ function AddressValid($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $address_type = isset($params['type']) ? strtolower($params['type']) : 'shipping'; @@ -503,7 +503,7 @@ function PaymentTypeForm($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $payment_type_id = $object->GetDBField('PaymentType'); if($payment_type_id) @@ -523,7 +523,7 @@ */ function UsingCreditCard($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $pt = $object->GetDBField('PaymentType'); @@ -557,7 +557,7 @@ function PrintMonthOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $date = explode('/', $object->GetDBField($params['date_field_name'])); if (!$date || sizeof($date) != 2) { @@ -581,7 +581,7 @@ function PrintYearOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $value = $object->GetDBField( $params['field'] ); $block_params = $this->prepareTagParams($params); @@ -703,7 +703,7 @@ $order_params['name'] = $this->SelectParam($order_params, 'render_as,block'); // $this->Application->SetVar('ord.myorders_id', $this->Application->GetVar('ord_id')); - $object =& $this->getObject($params); + $object = $this->getObject($params); if (!$object->GetDBField('OrderId')) { return; } @@ -774,7 +774,7 @@ function PrintAddresses($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $address_list = $this->Application->recallObject('addr','addr_List', Array('per_page'=>-1, 'skip_counting'=>true) ); $address_list->Query(); @@ -847,7 +847,7 @@ function UserLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $user_id = $object->GetDBField( $params['user_field'] ); if ($user_id) { @@ -867,7 +867,7 @@ function UserFound($params) { $virtual_users = Array(USER_ROOT, USER_GUEST, 0); - $object =& $this->getObject($params); + $object = $this->getObject($params); return !in_array( $object->GetDBField( $params['user_field'] ) , $virtual_users ); } @@ -879,7 +879,7 @@ */ function OrderLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $url_params = Array ( 'm_opener' => 'd', @@ -895,7 +895,7 @@ function HasOriginalAmount($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $original_amount = $object->GetDBField('OriginalAmount'); return $original_amount && ($original_amount != $object->GetDBField('TotalAmount') ); } @@ -910,7 +910,7 @@ */ function OrderHasTangibleItems($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); if ($object->GetID() == FAKE_ORDER_ID) { return false; } @@ -1010,7 +1010,7 @@ $order_helper = $this->Application->recallObject('OrderHelper'); /* @var $order_helper OrderHelper */ - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $currency = isset($params['currency']) ? $params['currency'] : 'selected'; @@ -1068,7 +1068,7 @@ function GetFormAction($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object OrdersItem */ $gw_data = $object->getGatewayData( isset($params['payment_type_id']) ? $params['payment_type_id'] : null ); @@ -1082,7 +1082,7 @@ function GetFormHiddenFields($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object OrdersItem */ $gw_data = $object->getGatewayData( isset($params['payment_type_id']) ? $params['payment_type_id'] : null ); @@ -1109,7 +1109,7 @@ function NeedsPlaceButton($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object OrdersItem */ $gw_data = $object->getGatewayData( isset($params['payment_type_id']) ? $params['payment_type_id'] : null ); @@ -1135,7 +1135,7 @@ function ShippingType($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $shipping_info = unserialize($object->GetDBField('ShippingInfo')); @@ -1179,7 +1179,7 @@ function HasDiscount($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); return (float)$object->GetDBField('DiscountTotal') ? 1 : 0; } @@ -1191,7 +1191,7 @@ function HasProductType($params) { $product_types = Array('tangible' => 1, 'subscription' => 2, 'service' => 3, 'downloadable' => 4, 'package' => 5, 'gift' => 6); - $object =& $this->getObject($params); + $object = $this->getObject($params); $sql = 'SELECT COUNT(*) FROM '.TABLE_PREFIX.'OrderItems oi @@ -1202,7 +1202,7 @@ function PrintSerializedFields($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $field = $this->SelectParam($params, 'field'); if (!$field) $field = $this->Application->GetVar('field'); $data = unserialize($object->GetDBField($field)); @@ -1286,7 +1286,7 @@ */ protected function PrintTotals($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object OrdersItem */ if ( isset($params['element_order']) ) { @@ -1385,7 +1385,7 @@ $addr_list = $this->Application->recallObject('addr', 'addr_List', Array('per_page'=>-1, 'skip_counting'=>true) ); $addr_list->Query(); - $object =& $this->getObject(); + $object = $this->getObject(); if (!$addr_list->CheckAddress($object->GetFieldValues(), $address_type)) { $addr_list->CopyAddress($address_id, $address_type); } @@ -1393,14 +1393,14 @@ function IsProfileAddress($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $address_type = ucfirst($params['type']); return $object->IsProfileAddress($address_type); } function HasPayPalSubscription($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $sql = 'SELECT COUNT(*) FROM '.TABLE_PREFIX.'OrderItems oi @@ -1412,7 +1412,7 @@ function GetPayPalSubscriptionForm($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $gw_data = $object->getGatewayData($params['payment_type_id']); $this->Application->registerClass( $gw_data['ClassName'], GW_CLASS_PATH.'/'.$gw_data['ClassFile'] ); @@ -1508,7 +1508,7 @@ */ function TotalOrderWeight($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $sql = 'SELECT SUM( IF(oi.Weight IS NULL, 0, oi.Weight * oi.Quantity) ) @@ -1606,7 +1606,7 @@ return ''; } - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object OrdersItem */ $gw_data = $object->getGatewayData($payment_type_id); @@ -1626,7 +1626,7 @@ */ function USPSLabelFound($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $full_path = USPS_LABEL_FOLDER . $object->GetDBField( $params['field'] ) . '.pdf'; @@ -1697,7 +1697,7 @@ */ protected function AddressesTheSame($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $address_fields = Array ('To', 'Company', 'Address1', 'Address2', 'City', 'Country', 'State', 'Zip'); Index: in-commerce/units/payment_type/payment_type_tag_processor.php =================================================================== --- in-commerce/units/payment_type/payment_type_tag_processor.php (revision 15111) +++ in-commerce/units/payment_type/payment_type_tag_processor.php (working copy) @@ -29,7 +29,7 @@ function ListGroups($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $selected = trim($object->GetDBField('PortalGroups'), ','); $selected_arr = explode(',', $selected); $all_groups = $this->Conn->Query('SELECT GroupId, Name FROM '.TABLE_PREFIX.'UserGroups ORDER BY NAME', 'GroupId'); Index: in-commerce/units/pricing/pricing_tag_processor.php =================================================================== --- in-commerce/units/pricing/pricing_tag_processor.php (revision 15141) +++ in-commerce/units/pricing/pricing_tag_processor.php (working copy) @@ -78,7 +78,7 @@ function ShowPricingForm($params) { - $br_object =& $this->getObject( Array('skip_autoload' => true) ); + $br_object = $this->getObject( Array('skip_autoload' => true) ); $br_data = $this->Application->GetVar("pr_tang"); Index: in-commerce/units/product_option_combinations/product_option_combinations_tag_processor.php =================================================================== --- in-commerce/units/product_option_combinations/product_option_combinations_tag_processor.php (revision 15141) +++ in-commerce/units/product_option_combinations/product_option_combinations_tag_processor.php (working copy) @@ -31,7 +31,7 @@ function ShowCombination($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $combination = unserialize($object->GetDBField('Combination')); $block_params['name'] = $params['render_as']; Index: in-commerce/units/product_options/product_options_tag_processor.php =================================================================== --- in-commerce/units/product_options/product_options_tag_processor.php (revision 15141) +++ in-commerce/units/product_options/product_options_tag_processor.php (working copy) @@ -17,7 +17,7 @@ function ShowOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $opt_helper = $this->Application->recallObject('kProductOptionsHelper'); @@ -160,7 +160,7 @@ function OptionData($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $options =& $this->GetOptions(); Index: in-commerce/units/products/products_tag_processor.php =================================================================== --- in-commerce/units/products/products_tag_processor.php (revision 15141) +++ in-commerce/units/products/products_tag_processor.php (working copy) @@ -17,7 +17,7 @@ function Rating($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $rating = round($object->GetDBField('CachedRating') ); $o = ''; @@ -34,7 +34,7 @@ function NewMark($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $o = ''; if($object->GetDBField('IsNew')) { @@ -45,7 +45,7 @@ function HotMark($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $o = ''; if($object->GetDBField('IsHot')) { @@ -61,7 +61,7 @@ function PopMark($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $o = ''; if($object->GetDBField('IsPop')) { @@ -72,7 +72,7 @@ function EdPickMark($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $o = ''; if($object->GetDBField('EditorsPick')) { @@ -276,7 +276,7 @@ function AddToCartLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); if ($object->GetDBField('HasRequiredOptions')) { $t = $params['product_template']; @@ -460,7 +460,7 @@ } else { // use product's manufacturer - $object =& $this->getObject($params); + $object = $this->getObject($params); $item_manufacturer_id = $object->GetDBField('ManufacturerId'); if ($item_manufacturer_id){ @@ -498,7 +498,7 @@ function Available($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ if ( !$object->GetDBField('InventoryStatus') ) { @@ -600,7 +600,7 @@ function ShouldListOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $req_filter = ''; if (getArrayValue($params, 'required_only')) { @@ -614,7 +614,7 @@ function CountOptions($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $query = 'SELECT COUNT(*) FROM '.TABLE_PREFIX.'ProductOptions WHERE ProductId = '.$object->GetID(); $res = $this->Conn->GetOne($query); @@ -652,7 +652,7 @@ $types = $quote_engine_collector->GetAvailableShippingTypes(); - $object =& $this->getObject($params); + $object = $this->getObject($params); $selected = $object->GetDBField('ShippingLimitation'); $selected = explode('|', substr($selected, 1, -1)); @@ -687,7 +687,7 @@ */ function Savings($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $price = $object->GetDBField('Price'); @@ -728,7 +728,7 @@ $edit_tab_presets = $this->Application->getUnitOption($this->Prefix, 'EditTabPresets'); $edit_tab_preset = $edit_tab_presets['Default']; - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $product_type = $object->GetDBField('Type'); @@ -772,7 +772,7 @@ */ protected function InCompare($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $products = $this->Application->GetVarDirect('compare_products', 'Cookie'); Index: in-commerce/units/shipping/shipping_tag_processor.php =================================================================== --- in-commerce/units/shipping/shipping_tag_processor.php (revision 15141) +++ in-commerce/units/shipping/shipping_tag_processor.php (working copy) @@ -303,7 +303,7 @@ function ListGroups($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $selected = trim($object->GetDBField('PortalGroups'), ','); $selected_arr = explode(',', $selected); $all_groups = $this->Conn->Query('SELECT GroupId, Name FROM '.TABLE_PREFIX.'UserGroups ORDER BY NAME', 'GroupId'); Index: in-commerce/units/taxes/taxes_tag_processor.php =================================================================== --- in-commerce/units/taxes/taxes_tag_processor.php (revision 15141) +++ in-commerce/units/taxes/taxes_tag_processor.php (working copy) @@ -18,7 +18,7 @@ function ShowCountries($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $destination_table = $this->getDestinationsTable($params); @@ -126,7 +126,7 @@ function ShowStates($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $destination_table = $this->getDestinationsTable($params); @@ -193,7 +193,7 @@ function ShowZips($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $destination_table = $this->getDestinationsTable($params); @@ -258,7 +258,7 @@ static $table_name = ''; if (!$table_name) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $table_name = $this->Application->getUnitOption('taxdst', 'TableName'); Index: in-commerce/units/zones/zones_tag_processor.php =================================================================== --- in-commerce/units/zones/zones_tag_processor.php (revision 15141) +++ in-commerce/units/zones/zones_tag_processor.php (working copy) @@ -17,7 +17,7 @@ { function ShowCountries($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $destination_table = $this->getDestinationsTable($params); @@ -125,7 +125,7 @@ function ShowStates($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $destination_table = $this->getDestinationsTable($params); @@ -192,7 +192,7 @@ function ShowZips($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $destination_table = $this->getDestinationsTable($params); @@ -257,7 +257,7 @@ static $table_name = ''; if (!$table_name) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $table_name = $this->Application->getUnitOption('dst', 'TableName'); Index: in-link/units/link_validation/link_validation_tp.php =================================================================== --- in-link/units/link_validation/link_validation_tp.php (revision 15111) +++ in-link/units/link_validation/link_validation_tp.php (working copy) @@ -18,7 +18,7 @@ function FormatUrl($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $url = $object->GetDBField($params['field']); if (!preg_match('/^(http|ftp|mailto:)(.*)/U', $url)) { @@ -37,10 +37,10 @@ function CategoryName($params) { // show category cachednavbar of - $object =& $this->getObject($params); + $object = $this->getObject($params); $category_id = isset($params['cat_id']) ? $params['cat_id'] : $object->GetDBField('CategoryId'); - $cache_key = 'category_paths[%CIDSerial:' . $category_id . '%][%PhrasesSerial%][Adm:' . (int)$this->Application->isAdmin . ']'; + $cache_key = 'category_paths[%CIDSerial:' . $category_id . '%][%PhrasesSerial%][Adm:' . (int)$this->Application->isAdmin . ']'; $category_path = $this->Application->getCache($cache_key); if ($category_path === false) { Index: in-link/units/links/link_tag_processor.php =================================================================== --- in-link/units/links/link_tag_processor.php (revision 15142) +++ in-link/units/links/link_tag_processor.php (working copy) @@ -56,7 +56,7 @@ */ function LinkIsEnhanced($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ if ($object->GetDBField('Status') == STATUS_PENDING || $object->GetDBField('Status') == STATUS_PENDING_EDITING) { @@ -77,7 +77,7 @@ */ function EnhancementIsPending($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $status = $this->getListingInfo($object->GetDBField('ResourceId'), 'Status'); @@ -87,7 +87,7 @@ function ListingTypeField($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $lst_id = $this->getListingInfo($object->GetDBField('ResourceId'), 'ListingTypeId'); @@ -100,7 +100,7 @@ function EnhancementField($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $listing_id = $this->getListingInfo($object->GetDBField('ResourceId'), 'ListingId'); @@ -113,7 +113,7 @@ function IsRenewalPeriod($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $listing_info = $this->getListingInfo($object->GetDBField('ResourceId')); @@ -150,7 +150,7 @@ return 0; } - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $listtype_id = $this->getListingInfo($object->GetDBField('ResourceId'), 'ListingTypeId'); @@ -163,7 +163,7 @@ function ClickLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); return $this->Application->HREF($params['t'], '', Array('l_id' => $object->GetID(), 'pass'=>'all,l' )); } @@ -203,7 +203,7 @@ */ function FollowLocation($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kCatDBItem */ if (!$object->isLoaded()) { @@ -252,7 +252,7 @@ */ function GetGoogleAddress($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); if (isset($params['display_info']) && $params['display_info']) { $ret = $object->GetField('cust_LinkAddress') ? $object->GetField('cust_LinkAddress').'
' : ''; @@ -289,7 +289,7 @@ static $link_visited = Array (); - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBList */ if (!isset($link_visited[$this->Special])) { @@ -344,7 +344,7 @@ $fields = explode(',', $fields); - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBList */ switch ($condition) { @@ -376,7 +376,7 @@ */ function DisplayDetailTemplate($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $template_name = $object->GetDBField('CustomTemplate'); Index: in-link/units/listing_types/listing_types_tag_processor.php =================================================================== --- in-link/units/listing_types/listing_types_tag_processor.php (revision 15111) +++ in-link/units/listing_types/listing_types_tag_processor.php (working copy) @@ -18,7 +18,7 @@ function CategoryPath($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $params['cat_id'] = $object->GetDBField($params['field']); return $this->Application->ProcessParsedTag('c', 'CategoryPath', $params); @@ -34,7 +34,7 @@ { static $listing_type_id = null; - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ if (!isset($listing_type_id)) { Index: in-link/units/listings/listings_tag_processor.php =================================================================== --- in-link/units/listings/listings_tag_processor.php (revision 15142) +++ in-link/units/listings/listings_tag_processor.php (working copy) @@ -24,7 +24,7 @@ */ function ListingTypeLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return $this->Application->HREF($params['edit_template'],'', Array( @@ -38,7 +38,7 @@ function LinkEditLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $sql = 'SELECT '.$this->Application->getUnitOption('l', 'IDField').' @@ -66,7 +66,7 @@ protected function _expirationField($params, $format_field) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $listing_type = $this->Application->recallObject( 'lst', 'lst', $params );