diff --git a/htdocs/webservices/server_invoice.php b/htdocs/webservices/server_invoice.php index 7572238264f..9e67019dacc 100755 --- a/htdocs/webservices/server_invoice.php +++ b/htdocs/webservices/server_invoice.php @@ -34,6 +34,8 @@ require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php"); dol_syslog("Call Dolibarr webservices interfaces"); +$langs->load("main"); + // Enable and test if module web services is enabled if (empty($conf->global->MAIN_MODULE_WEBSERVICES)) { diff --git a/htdocs/webservices/server_other.php b/htdocs/webservices/server_other.php index 26aac4bce5a..e3f0402bbf1 100644 --- a/htdocs/webservices/server_other.php +++ b/htdocs/webservices/server_other.php @@ -33,6 +33,8 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/functions2.lib.php"); dol_syslog("Call Dolibarr webservices interfaces"); +$langs->load("main"); + // Enable and test if module web services is enabled if (empty($conf->global->MAIN_MODULE_WEBSERVICES)) { diff --git a/htdocs/webservices/server_productorservice.php b/htdocs/webservices/server_productorservice.php index bd71a98b92a..d7d062126d0 100755 --- a/htdocs/webservices/server_productorservice.php +++ b/htdocs/webservices/server_productorservice.php @@ -33,6 +33,8 @@ require_once(DOL_DOCUMENT_ROOT."/product/class/product.class.php"); dol_syslog("Call Dolibarr webservices interfaces"); +$langs->load("main"); + // Enable and test if module web services is enabled if (empty($conf->global->MAIN_MODULE_WEBSERVICES)) { diff --git a/htdocs/webservices/server_supplier_invoice.php b/htdocs/webservices/server_supplier_invoice.php index 03a85daf3e8..304c5bfd598 100755 --- a/htdocs/webservices/server_supplier_invoice.php +++ b/htdocs/webservices/server_supplier_invoice.php @@ -33,6 +33,8 @@ require_once(DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.facture.class.php"); dol_syslog("Call Dolibarr webservices interfaces"); +$langs->load("main"); + // Enable and test if module web services is enabled if (empty($conf->global->MAIN_MODULE_WEBSERVICES)) { diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php index e7f4a76d269..d140a7ef31b 100755 --- a/htdocs/webservices/server_thirdparty.php +++ b/htdocs/webservices/server_thirdparty.php @@ -33,6 +33,8 @@ require_once(DOL_DOCUMENT_ROOT."/societe/class/societe.class.php"); dol_syslog("Call Dolibarr webservices interfaces"); +$langs->load("main"); + // Enable and test if module web services is enabled if (empty($conf->global->MAIN_MODULE_WEBSERVICES)) { diff --git a/htdocs/webservices/server_user.php b/htdocs/webservices/server_user.php index 1178f1f007d..8a43026b983 100644 --- a/htdocs/webservices/server_user.php +++ b/htdocs/webservices/server_user.php @@ -32,6 +32,8 @@ require_once(DOL_DOCUMENT_ROOT."/user/class/user.class.php"); dol_syslog("Call User webservices interfaces"); +$langs->load("main"); + // Enable and test if module web services is enabled if (empty($conf->global->MAIN_MODULE_WEBSERVICES)) {