diff --git a/htdocs/fourn/facture/card-rec.php b/htdocs/fourn/facture/card-rec.php index dcf00e5bc56..87628c554fe 100644 --- a/htdocs/fourn/facture/card-rec.php +++ b/htdocs/fourn/facture/card-rec.php @@ -594,8 +594,8 @@ if (empty($reshook)) { $pu_ht = price2num($price_ht, 'MU'); $pu_ttc = price2num((float) $pu_ht * (1 + ((float) $tmpvat / 100)), 'MU'); } elseif ($tmpvat != $tmpprodvat) { - // On reevalue prix selon taux tva car taux tva transaction peut etre different - // de ceux du produit par default (par example si pays different entre vendeur et acheteur). + // We reevaluate the price according to the var rate because vat of transaction can be different of + // the one of the product by default (for example when country is different between seller and buyer). if ($price_base_type != 'HT') { $pu_ht = price2num($pu_ttc / (1 + ((float) $tmpvat / 100)), 'MU'); } else { @@ -1485,7 +1485,7 @@ if ($action == 'create') { if ($object->frequency > 0) { print '
'; - if (empty($conf->cron->enabled)) { + if (!isModEnabled('cron')) { print info_admin($langs->trans("EnableAndSetupModuleCron", $langs->transnoentitiesnoconv("Module2300Name"))); } diff --git a/htdocs/public/cron/cron_run_jobs_by_url.php b/htdocs/public/cron/cron_run_jobs_by_url.php index e130a1b74d4..bbdbe23cd47 100644 --- a/htdocs/public/cron/cron_run_jobs_by_url.php +++ b/htdocs/public/cron/cron_run_jobs_by_url.php @@ -81,7 +81,7 @@ global $langs, $conf, $db; $langs->loadLangs(array("admin", "cron", "dict")); // Security check -if (empty($conf->cron->enabled)) { +if (!isModEnabled('cron')) { httponly_accessforbidden('Module Cron not enabled'); }