Index: branches/5.2.x/units/currencies/currencies_tag_processor.php =================================================================== diff -u -N -r14702 -r14755 --- branches/5.2.x/units/currencies/currencies_tag_processor.php (.../currencies_tag_processor.php) (revision 14702) +++ branches/5.2.x/units/currencies/currencies_tag_processor.php (.../currencies_tag_processor.php) (revision 14755) @@ -1,6 +1,6 @@ PrintList2($params); } + function CurrencyLink($params) + { + $object =& $this->getObject($params); + /* @var $object kDBItem */ + + $params['pass'] = 'm,curr'; + $params['curr_event'] = 'OnChangeCurrency'; + $params['curr_iso'] = $object->GetDBField('ISO'); + + return $this->Application->ProcessParsedTag('m', 'Link', $params); + } + function SelectedCurrency($params) { $object =& $this->Application->recallObject($this->getPrefixSpecial()); @@ -69,13 +81,19 @@ function PrimaryCurrencyISO($params) { - $sql = 'SELECT ISO FROM '.$this->Application->getUnitOption($this->Prefix, 'TableName').' WHERE IsPrimary = 1'; + $sql = 'SELECT ISO + FROM ' . $this->Application->getUnitOption($this->Prefix, 'TableName') . ' + WHERE IsPrimary = 1'; + return $this->Conn->GetOne($sql); } function PrimaryCurrencyName($params) { - $sql = 'SELECT Name FROM '.$this->Application->getUnitOption($this->Prefix, 'TableName').' WHERE IsPrimary = 1'; + $sql = 'SELECT Name + FROM ' . $this->Application->getUnitOption($this->Prefix, 'TableName') . ' + WHERE IsPrimary = 1'; + return $this->Application->Phrase( $this->Conn->GetOne($sql) ); } } \ No newline at end of file