From c8dd0383d8b5aea6dec5e92ffe3dfa2bc9db70ad Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Thu, 16 Oct 2014 01:26:44 +0200 Subject: [PATCH] New: Function getCurrencyAmount is marked as deprecated. Use function price to output a price including currency symbol. --- ChangeLog | 2 ++ htdocs/core/class/translate.class.php | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 57673bac498..8e48a5fc67d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -120,6 +120,8 @@ For developers: - New: renamed table llx_c_pays to llx_c_country & libelle field to label. - New: Added hook "formConfirm" and "doActions" for fichinter card - New: Can search list of thirdparties from web service on part of name. +- New: Function getCurrencyAmount is marked as deprecated. Use function price to output a price + including currency symbol. - Qual: Renamed table llx_c_civilite into llx_c_civility, field civilite into label in the same table, and field civilite into civility in other table. diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 7462a40e897..6b24d5356df 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -701,6 +701,7 @@ class Translate * @param string $currency_code Currency Code * @param string $amount If not '', show currency + amount according to langs ($10, 10€). * @return string Amount + Currency symbol encoded into UTF8 + * @deprecated Use method price to output a price */ function getCurrencyAmount($currency_code, $amount) { -- GitLab