From cd796bf682d991c3826accc8993c4c01bf7f15cc Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 17 Sep 2018 12:29:21 +0200 Subject: [PATCH] Standardize and update code --- htdocs/core/class/html.formsms.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php index 1e8a35fe3a4..165a4069b87 100644 --- a/htdocs/core/class/html.formsms.class.php +++ b/htdocs/core/class/html.formsms.class.php @@ -101,9 +101,8 @@ class FormSms if (! is_object($form)) $form=new Form($this->db); - $langs->load("other"); - $langs->load("mails"); - $langs->load("sms"); + // Load translation files required by the page + $langs->loadLangs(array('other', 'mails', 'sms')); $soc=new Societe($this->db); if (!empty($this->withtosocid) && $this->withtosocid > 0)