From 7e547f3f16a8ec5ab7b9bc795a61496ebe331e8d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Mar 2019 12:07:28 +0100 Subject: [PATCH] Fix type of parameter --- htdocs/core/class/translate.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index e0865a640e4..56ae3405a98 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -171,7 +171,7 @@ class Translate * @param int $forcelangdir To force a different lang directory * @param int $loadfromfileonly 1=Do not load overwritten translation from file or old conf. * @return int <0 if KO, 0 if already loaded or loading not required, >0 if OK - * @see loadLangs + * @see loadLangs() */ public function load($domain, $alt = 0, $stopafterdirection = 0, $forcelangdir = '', $loadfromfileonly = 0) { @@ -831,12 +831,12 @@ class Translate * same number (this module is not provided by default as it use non GPL source code). * * @param int $number Number to encode in full text - * @param int $isamount 1=It's an amount, 0=it's just a number + * @param string $isamount ''=it's just a number, '1'=It's an amount (default currency), 'currencycode'=It's an amount (foreign currency) * @return string Label translated in UTF8 (but without entities) * 10 if setDefaultLang was en_US => ten * 123 if setDefaultLang was fr_FR => cent vingt trois */ - public function getLabelFromNumber($number, $isamount = 0) + public function getLabelFromNumber($number, $isamount = '') { global $conf; @@ -877,7 +877,7 @@ class Translate * @param string $keyforselect Use another value than the translation key for the where into select * @param int $filteronentity Use a filter on entity * @return string Label in UTF8 (but without entities) - * @see dol_getIdFromCode + * @see dol_getIdFromCode() */ public function getLabelFromKey($db, $key, $tablename, $fieldkey, $fieldlabel, $keyforselect = '', $filteronentity = 0) {