forked from Wavyzz/dolibarr
More info to help debug
This commit is contained in:
@@ -5810,7 +5810,7 @@ function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss
|
|||||||
*/
|
*/
|
||||||
function dol_print_error($db = null, $error = '', $errors = null)
|
function dol_print_error($db = null, $error = '', $errors = null)
|
||||||
{
|
{
|
||||||
global $conf, $langs, $argv;
|
global $conf, $langs, $user, $argv;
|
||||||
global $dolibarr_main_prod;
|
global $dolibarr_main_prod;
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
@@ -5838,6 +5838,9 @@ function dol_print_error($db = null, $error = '', $errors = null)
|
|||||||
if (isset($conf->global->MAIN_FEATURES_LEVEL)) {
|
if (isset($conf->global->MAIN_FEATURES_LEVEL)) {
|
||||||
$out .= "<b>".$langs->trans("LevelOfFeature").":</b> ".getDolGlobalInt('MAIN_FEATURES_LEVEL')."<br>\n";
|
$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")) {
|
if (function_exists("phpversion")) {
|
||||||
$out .= "<b>".$langs->trans("PHP").":</b> ".phpversion()."<br>\n";
|
$out .= "<b>".$langs->trans("PHP").":</b> ".phpversion()."<br>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user