diff --git a/htdocs/conf/conf.class.php b/htdocs/conf/conf.class.php index 65243b4da28..754226e196e 100644 --- a/htdocs/conf/conf.class.php +++ b/htdocs/conf/conf.class.php @@ -333,6 +333,10 @@ class Conf * Modification de quelques variable de conf en fonction des Constantes */ + // Debug Mode + $this->use_debug_mode=0; + if ($this->global->MAIN_ENABLE_DEBUG_MODE) $this->use_debug_mode=$this->global->MAIN_ENABLE_DEBUG_MODE; + // outils systemes if (! $this->global->SYSTEMTOOLS_MYSQLDUMP) $this->global->SYSTEMTOOLS_MYSQLDUMP="mysqldump"; diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 0dea2c23bf5..b2ef06e828f 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -318,7 +318,7 @@ if ($_GET["action"] == 'create') } print_titre($langs->trans("AddIntervention")); - + if (! $conf->global->FICHEINTER_ADDON) { dolibarr_print_error($db,$langs->trans("Error")." ".$langs->trans("Error_FICHEINTER_ADDON_NotDefined")); @@ -438,6 +438,18 @@ elseif ($_GET["id"] > 0) exit; } $fichinter->fetch_client(); + + // Debug mode + // TODO: créer une fonction debug générique + if ($conf->use_debug_mode) + { + $debug = '