Skip to content
Snippets Groups Projects
Commit 72d9f734 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Missing lang loading

parent 66ea4488
No related branches found
No related tags found
No related merge requests found
......@@ -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))
{
......
......@@ -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))
{
......
......@@ -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))
{
......
......@@ -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))
{
......
......@@ -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))
{
......
......@@ -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))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment