From ab92871dc36ee2d2a4b47b1e6ae1c5ed41ca6301 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Sun, 16 Sep 2018 11:37:43 +0200 Subject: [PATCH] Standardize and update code --- htdocs/fourn/commande/contact.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/fourn/commande/contact.php b/htdocs/fourn/commande/contact.php index f62ccd03331..85739bdb6ef 100644 --- a/htdocs/fourn/commande/contact.php +++ b/htdocs/fourn/commande/contact.php @@ -33,10 +33,8 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php'; } -$langs->load("facture"); -$langs->load("orders"); -$langs->load("sendings"); -$langs->load("companies"); +// Load translation files required by the page +$langs->loadLangs(array("facture","orders","sendings","companies")); $id = GETPOST('id', 'int'); $ref = GETPOST('ref', 'alpha');