Index: branches/5.2.x/units/products/products_tag_processor.php =================================================================== diff -u -N -r13845 -r14099 --- branches/5.2.x/units/products/products_tag_processor.php (.../products_tag_processor.php) (revision 13845) +++ branches/5.2.x/units/products/products_tag_processor.php (.../products_tag_processor.php) (revision 14099) @@ -1,6 +1,6 @@ Application->GetADODBConnection(); - return $conn->GetOne("SELECT Name FROM ".TABLE_PREFIX."Category WHERE CategoryId=".$this->Application->GetVar("m_cat_id")); + function CurrentCategory($params) + { + $sql = "SELECT Name + FROM ".TABLE_PREFIX."Category + WHERE CategoryId=".$this->Application->GetVar("m_cat_id"); + + return $this->Conn->GetOne($sql); } function RateForm($params) @@ -260,9 +264,9 @@ function SearchMoreLink($params) { - $object =& $this->Application->recallObject( $this->getPrefixSpecial() , $this->Prefix.'_List', $params ); + $object =& $this->GetList($params); $o = ''; - if($object->PerPage < $this->SearchResultsCount()) + if($object->GetPerPage() < $this->SearchResultsCount()) { $o = $this->Application->ParseBlock( Array('name' => $params['block']) ); } @@ -333,20 +337,6 @@ return $main_processor->T($params); } - /* - function MoreLink($params) - { - $object =& $this->Application->recallObject( $this->getPrefixSpecial() , $this->Prefix.'_List', $params ); - $favorites_tag_processor =& $this->Application->recallObject('fav_TagProcessor'); - $o = ''; - if($object->PerPage < $favorites_tag_processor->FavoriteProductCount( Array('filter' => 'all') )) - { - $o = $this->Application->ParseBlock( Array('name' => $params['block']) ); - } - return $o; - } - */ - function GetMarkedVal($params) { $list =& $this->GetList($params);