L'activation du module prelevement est charg dans l'objet $conf

This commit is contained in:
Laurent Destailleur 2004-10-01 17:42:00 +00:00
parent f9ca00396e
commit 069241452a
2 changed files with 6 additions and 3 deletions

View File

@ -92,7 +92,7 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/compta/stats/","CA / Résultats");
if (defined("MAIN_MODULE_PRELEVEMENT") && MAIN_MODULE_PRELEVEMENT)
if ($conf->prelevement->enabled)
{
$menu->add(DOL_URL_ROOT."/compta/prelevement/","Bon prélèv.");
}

View File

@ -3,7 +3,7 @@
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -238,6 +238,10 @@ if (defined("MAIN_MODULE_TELEPHONIE"))
{
$conf->telephonie->enabled=MAIN_MODULE_TELEPHONIE;
}
if (defined("MAIN_MODULE_PRELEVEMENT"))
{
$conf->prelevement->enabled=MAIN_MODULE_PRELEVEMENT;
}
if (defined("MAIN_MODULE_WEBCALENDAR"))
{
$conf->webcal->enabled=MAIN_MODULE_WEBCALENDAR;
@ -247,7 +251,6 @@ if (defined("MAIN_MODULE_FACTURE"))
$conf->facture->enabled=MAIN_MODULE_FACTURE;
require (DOL_DOCUMENT_ROOT ."/includes/modules/facture/modules_facture.php");
}
if (defined("MAIN_MODULE_PROPALE"))
{
$conf->propal->enabled=MAIN_MODULE_PROPALE;