From 120f823065e8b6f705632a50dd31cde479864991 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Sun, 16 Sep 2018 11:45:18 +0200 Subject: [PATCH] Standardize and update code --- htdocs/fourn/commande/document.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/htdocs/fourn/commande/document.php b/htdocs/fourn/commande/document.php index 41e982284fc..8aa4da9c307 100644 --- a/htdocs/fourn/commande/document.php +++ b/htdocs/fourn/commande/document.php @@ -38,14 +38,8 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php'; } -$langs->load('orders'); -$langs->load('other'); -$langs->load('sendings'); -$langs->load('companies'); -$langs->load('bills'); -$langs->load('deliveries'); -$langs->load('products'); -$langs->load('stocks'); +// Load translation files required by the page +$langs->loadLangs(array("bills", "orders", "sendings", "companies", "deliveries", "products", "stocks","other")); $id = GETPOST('id','int'); $ref = GETPOST('ref', 'alpha');