2
0
forked from Wavyzz/dolibarr

More info to help debug

This commit is contained in:
Laurent Destailleur
2024-09-04 16:52:39 +02:00
parent ed81c3f875
commit 6e19d09a66

View File

@@ -5810,7 +5810,7 @@ function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss
*/
function dol_print_error($db = null, $error = '', $errors = null)
{
global $conf, $langs, $argv;
global $conf, $langs, $user, $argv;
global $dolibarr_main_prod;
$out = '';
@@ -5838,6 +5838,9 @@ function dol_print_error($db = null, $error = '', $errors = null)
if (isset($conf->global->MAIN_FEATURES_LEVEL)) {
$out .= "<b>".$langs->trans("LevelOfFeature").":</b> ".getDolGlobalInt('MAIN_FEATURES_LEVEL')."<br>\n";
}
if ($user instanceof User) {
$out .= "<b>".$langs->trans("Login").":</b> ".$user->login."<br>\n";
}
if (function_exists("phpversion")) {
$out .= "<b>".$langs->trans("PHP").":</b> ".phpversion()."<br>\n";
}