Index: branches/5.1.x/core/units/related_searches/related_searches_tag_processor.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/related_searches/related_searches_tag_processor.php (.../related_searches_tag_processor.php) (revision 12127) +++ branches/5.1.x/core/units/related_searches/related_searches_tag_processor.php (.../related_searches_tag_processor.php) (revision 12657) @@ -1,6 +1,6 @@ getObject($params); - $keyword = $object->GetDBField('Keyword'); + class RelatedSearchTagProcessor extends kDBTagProcessor { - return $this->Application->HREF($params['search_template'],'', Array('keywords' => $keyword)); - } + /** + * Returns url for search on the Fornt End + * + * @param Array $params + * @return string + */ + function RelatedSearchUrl($params) + { + $object =& $this->getObject($params); + $keyword = $object->GetDBField('Keyword'); - /** - * If data was modfied & is in TempTables mode, then parse block with name passed; - * remove modification mark if not in TempTables mode - * - * @param Array $params - * @return string - * @access public - * @author Alexey - */ - function SaveWarning($params) - { - if ($this->Prefix == 'c-search') { - return $this->Application->ProcessParsedTag('c', 'SaveWarning', $params); + return $this->Application->HREF($params['search_template'],'', Array('keywords' => $keyword)); } - return parent::SaveWarning($params); - } -} + /** + * If data was modfied & is in TempTables mode, then parse block with name passed; + * remove modification mark if not in TempTables mode + * + * @param Array $params + * @return string + * @access public + * @author Alexey + */ + function SaveWarning($params) + { + if ($this->Prefix == 'c-search') { + return $this->Application->ProcessParsedTag('c', 'SaveWarning', $params); + } -?> \ No newline at end of file + return parent::SaveWarning($params); + } + + }