From 0977e479ccc084151712a4217997d2f2fc51551e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Jan 2009 15:19:32 +0000 Subject: [PATCH] Add warning to avoid bug reports when on experimental feature --- htdocs/lib/functions.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 7c8e5ec8d9e..228658a06bf 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1562,6 +1562,8 @@ function dol_print_error($db='',$error='') if ($_SERVER['DOCUMENT_ROOT']) // Mode web { print $langs->trans("DolibarrHasDetectedError").".
\n"; + if (! empty($conf->global->MAIN_FEATURES_LEVEL)) + print "You use an experimental level of features, so please do NOT report any bugs, anywhere, until going back to MAIN_FEATURES_LEVEL = 0.
\n"; print $langs->trans("InformationToHelpDiagnose").":

\n"; print "".$langs->trans("Dolibarr").": ".DOL_VERSION."
\n";; @@ -1622,7 +1624,7 @@ function dol_print_error($db='',$error='') $syslog.=", msg=".$msg; } } - + dolibarr_syslog("Error ".$syslog, LOG_ERR); }