From 251273e3c310395b27069ece9aac36ba5e8eb08e Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Sun, 16 Sep 2018 11:50:29 +0200 Subject: [PATCH] Standardize and update code --- htdocs/fourn/commande/note.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php index d44c1348b15..288b43d200b 100644 --- a/htdocs/fourn/commande/note.php +++ b/htdocs/fourn/commande/note.php @@ -3,7 +3,7 @@ * Copyright (C) 2004-2016 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2012 Marcos GarcĂ­a - * Copyright (C) 2017 Ferran Marcet + * Copyright (C) 2017 Ferran Marcet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,10 +32,8 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php'; } -$langs->load("orders"); -$langs->load("suppliers"); -$langs->load("companies"); -$langs->load('stocks'); +// Load translation files required by the page +$langs->loadLangs(array("suppliers", "orders", "companies", "stocks")); $id = GETPOST('facid','int')?GETPOST('facid','int'):GETPOST('id','int'); $ref = GETPOST('ref');