diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index cdb7e2b4d78..b2a2a7df949 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -2405,19 +2405,22 @@ function dol_print_error($db='',$error='')
if ($_SERVER['DOCUMENT_ROOT']) // Mode web
{
$out.=$langs->trans("DolibarrHasDetectedError").".
\n";
- if (! empty($conf->global->MAIN_FEATURES_LEVEL))
- $out.="You use an experimental level of features, so please do NOT report any bugs, anywhere, until going back to MAIN_FEATURES_LEVEL = 0.
\n";
+ if (! empty($conf->global->MAIN_FEATURES_LEVEL)) $out.="You use an experimental level of features, so please do NOT report any bugs, anywhere, until going back to MAIN_FEATURES_LEVEL = 0.
\n";
$out.=$langs->trans("InformationToHelpDiagnose").":
\n";
- $out.="".$langs->trans("Date").": ".dol_print_date(time(),'dayhourlog')."
\n";;
- $out.="".$langs->trans("Dolibarr").": ".DOL_VERSION."
\n";;
- if (isset($conf->global->MAIN_FEATURES_LEVEL)) $out.="".$langs->trans("LevelOfFeature").": ".$conf->global->MAIN_FEATURES_LEVEL."
\n";;
+ $out.="".$langs->trans("Date").": ".dol_print_date(time(),'dayhourlog')."
\n";
+ $out.="".$langs->trans("Dolibarr").": ".DOL_VERSION."
\n";
+ if (isset($conf->global->MAIN_FEATURES_LEVEL)) $out.="".$langs->trans("LevelOfFeature").": ".$conf->global->MAIN_FEATURES_LEVEL."
\n";
if (function_exists("phpversion"))
{
$out.="".$langs->trans("PHP").": ".phpversion()."
\n";
- //phpinfo(); // This is to show location of php.ini file
}
$out.="".$langs->trans("Server").": ".$_SERVER["SERVER_SOFTWARE"]."
\n";
+ if (function_exists("php_uname"))
+ {
+ $out.="".$langs->trans("OS").": ".php_uname()."
\n";
+ }
+ $out.="".$langs->trans("UserAgent").": ".$_SERVER["HTTP_USER_AGENT"]."
\n";
$out.="
\n";
$out.="".$langs->trans("RequestedUrl").": ".dol_htmlentities($_SERVER["REQUEST_URI"],ENT_COMPAT,'UTF-8')."
\n";
$out.="".$langs->trans("Referer").": ".(isset($_SERVER["HTTP_REFERER"])?dol_htmlentities($_SERVER["HTTP_REFERER"],ENT_COMPAT,'UTF-8'):'')."
\n";