From 933f6fb265e963768b3c6e9472bc95da7c06d447 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 16 Nov 2004 21:23:43 +0000 Subject: [PATCH] Fix: Le test de chargement du module fournisseur est conf->fournisseur->enabled et non conf->fourn->enabled --- htdocs/compta/facture/pre.inc.php | 2 +- htdocs/compta/pre.inc.php | 3 ++- htdocs/compta/prelevement/pre.inc.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture/pre.inc.php b/htdocs/compta/facture/pre.inc.php index a9dcab6bf3e..7c2e793574c 100644 --- a/htdocs/compta/facture/pre.inc.php +++ b/htdocs/compta/facture/pre.inc.php @@ -47,7 +47,7 @@ function llxHeader($head = "", $title="", $help_url='') { $menu->add(DOL_URL_ROOT."/compta/dons/","Dons"); } - if ($conf->don->enabled) + if ($conf->facture->enabled) { $menu->add(DOL_URL_ROOT."/compta/facture.php","Factures"); $menu->add_submenu(DOL_URL_ROOT."/compta/facture/fiche-rec.php","Récurrentes"); diff --git a/htdocs/compta/pre.inc.php b/htdocs/compta/pre.inc.php index 3acb2597ff2..bb4a508d1b6 100644 --- a/htdocs/compta/pre.inc.php +++ b/htdocs/compta/pre.inc.php @@ -74,7 +74,7 @@ function llxHeader($head = "", $title="", $help_url='') // Les dépenses - if ($conf->fourn->enabled) + if ($conf->fournisseur->enabled) { $langs->load("suppliers"); $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers")); @@ -89,6 +89,7 @@ function llxHeader($head = "", $title="", $help_url='') { $menu->add(DOL_URL_ROOT."/compta/tva/index.php",$langs->trans("VAT")); } + if ($conf->compta->enabled) { $menu->add(DOL_URL_ROOT."/compta/charges/index.php","Charges"); diff --git a/htdocs/compta/prelevement/pre.inc.php b/htdocs/compta/prelevement/pre.inc.php index 1e795b6d4b7..3e2977b4fcd 100644 --- a/htdocs/compta/prelevement/pre.inc.php +++ b/htdocs/compta/prelevement/pre.inc.php @@ -72,7 +72,7 @@ function llxHeader($head = "", $title="", $help_url='') // Les dépenses - if ($conf->fourn->enabled) + if ($conf->fournisseur->enabled) { $langs->load("suppliers"); $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));