diff --git a/htdocs/core/modules/modMultiCurrency.class.php b/htdocs/core/modules/modMultiCurrency.class.php index c6c148fb599..728e9f0b5d0 100644 --- a/htdocs/core/modules/modMultiCurrency.class.php +++ b/htdocs/core/modules/modMultiCurrency.class.php @@ -152,7 +152,7 @@ class modMultiCurrency extends DolibarrModules 'objectname'=>'MultiCurrency', 'method'=>'syncRates', 'parameters'=>'0,0,cron', - 'comment'=>'Update all the currencies using the currencylayer API. An API key needs to be given in the multi-currency module config page', + 'comment'=>'Update all the currencies using the currencylayer API. An API key needs to be given in the multi-currency module config page to have this job working.
First param is not used, Second parameter is 0 to update only already existing currency defined into the Multicurrency module or 1 to add any currency. Third parameter must be "cron".', 'frequency'=>1, 'unitfrequency'=>2678400, 'status'=>$statusatinstall, diff --git a/htdocs/multicurrency/class/multicurrency.class.php b/htdocs/multicurrency/class/multicurrency.class.php index 31e1db34125..69aa41f8cb2 100644 --- a/htdocs/multicurrency/class/multicurrency.class.php +++ b/htdocs/multicurrency/class/multicurrency.class.php @@ -657,10 +657,10 @@ class MultiCurrency extends CommonObject /** * Sync rates from API * - * @param string $key No more used - * @param int $addifnotfound Add if not found - * @param string $mode "" for standard use, "cron" to use it in a cronjob - * @return int Return integer <0 if KO, >0 if OK, if mode = "cron" OK is 0 + * @param int|string $key No more used + * @param int $addifnotfound Add if not found + * @param string $mode "" for standard use, "cron" to use it in a cronjob + * @return int Return integer <0 if KO, >0 if OK, if mode = "cron" OK is 0 */ public function syncRates($key = '', $addifnotfound = 0, $mode = "") {