From 8efe98b99381aaa7174bd8f6b84ea10188c3a34e Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Sun, 16 Sep 2018 11:31:54 +0200 Subject: [PATCH] Standardize and update code --- htdocs/fichinter/card-rec.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/htdocs/fichinter/card-rec.php b/htdocs/fichinter/card-rec.php index b32bb39185b..8ef79639e05 100644 --- a/htdocs/fichinter/card-rec.php +++ b/htdocs/fichinter/card-rec.php @@ -46,11 +46,8 @@ if (! empty($conf->contrat->enabled)) { require_once DOL_DOCUMENT_ROOT . '/core/class/html.formcontract.class.php'; } - -$langs->load('bills'); -$langs->load('compta'); -$langs->load('admin'); -$langs->load("interventions"); +// Load translation files required by the page +$langs->loadLangs(array("interventions","admin","compta","bills")); // Security check $id=(GETPOST('fichinterid', 'int')?GETPOST('fichinterid', 'int'):GETPOST('id', 'int'));