Index: branches/5.2.x/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r15137 -r15152 --- branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 15137) +++ branches/5.2.x/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 15152) @@ -1,6 +1,6 @@ getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ if ( isset($params['today']) && $params['today'] ) { @@ -48,7 +48,7 @@ function IsNew($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return $object->GetDBField('IsNew') ? 1 : 0; @@ -67,7 +67,7 @@ */ function IsEditorsPick($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return $object->GetDBField('EditorsPick') == 1; @@ -90,7 +90,7 @@ return array_key_exists($icon_name, $icons) ? $icons[$icon_name] : ''; } - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBList */ if ($object->GetDBField('ThemeId') > 0) { @@ -123,7 +123,7 @@ function ItemCount($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $ci_table = $this->Application->getUnitOption('ci', 'TableName'); @@ -195,7 +195,7 @@ */ function FieldCategoryPath($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBItem */ $field = $this->SelectParam($params, 'name,field'); @@ -442,7 +442,7 @@ function IsCurrent($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); if ($object->GetID() == $this->Application->GetVar('m_cat_id')) { return true; } @@ -625,7 +625,7 @@ */ function IsRootCategory($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object CategoriesItem */ return $object->IsRoot(); @@ -732,7 +732,7 @@ $cat_id = array_key_exists('cat_id', $params) && $params['cat_id'] ? $params['cat_id'] : false; if ( $cat_id === false ) { // category not supplied -> get current from PrintList - $category =& $this->getObject($params); + $category = $this->getObject($params); } else { if ( "$cat_id" == 'Root' ) { @@ -764,7 +764,7 @@ /* @var $perm_helper kPermissionsHelper */ $params['raise_warnings'] = 0; - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $params['cat_id'] = $object->isLoaded() ? $object->GetDBField('ParentPath') : $this->Application->GetVar('m_cat_id'); @@ -846,7 +846,7 @@ function CategoryItemCount($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBList */ $params['cat_id'] = $object->GetID(); @@ -876,7 +876,7 @@ */ function IsCategorySymLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBList */ $sym_category_id = $object->GetDBField('SymLinkCategoryId'); @@ -904,7 +904,7 @@ */ function GetModulePrefix($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $parent_path = explode('|', substr($object->GetDBField('ParentPath'), 1, -1)); @@ -1057,7 +1057,7 @@ function CategoryName($params) { // show category cachednavbar of - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $category_id = isset($params['cat_id']) ? $params['cat_id'] : $object->GetDBField('CategoryId'); @@ -1812,7 +1812,7 @@ */ function PageBrowseLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $themes_helper = $this->Application->recallObject('ThemesHelper'); @@ -1841,7 +1841,7 @@ function DirectLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $themes_helper = $this->Application->recallObject('ThemesHelper'); @@ -1870,7 +1870,7 @@ */ function ContentPageLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $params['t'] = $object->GetDBField('NamedParentPath'); @@ -1887,7 +1887,7 @@ */ function SearchDescription($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $desc = $object->GetField('MetaDescription'); if (!$desc) { $sql = 'SELECT * @@ -1915,7 +1915,7 @@ */ function EnterCatLink($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $url_params = Array ('pass' => 'm', 'm_cat_id' => $object->GetID()); return $this->Application->HREF($params['template'], '', $url_params); @@ -1930,7 +1930,7 @@ */ function PagePath($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); $path = $object->GetField('CachedNavbar'); if ($path) { $items = explode('&|&', $path); @@ -2095,7 +2095,7 @@ */ 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'; @@ -2115,7 +2115,7 @@ function RelevanceIndicator($params) { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $search_results_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; @@ -2148,7 +2148,7 @@ $categories = true; } else { - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ $perm_helper = $this->Application->recallObject('PermissionsHelper'); @@ -2170,7 +2170,7 @@ return true; } - $object =& $this->getObject($params); + $object = $this->getObject($params); /* @var $object kDBItem */ return !$object->GetDBField('Protected');