Fix: Missing lang loading

This commit is contained in:
Laurent Destailleur 2012-07-22 12:13:53 +02:00
parent 66ea44886b
commit 72d9f7348c
6 changed files with 12 additions and 0 deletions

View File

@ -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))
{

View File

@ -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))
{

View File

@ -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))
{

View File

@ -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))
{

View File

@ -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))
{

View File

@ -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))
{