mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-13 04:51:25 +01:00
More informations if using XDebug
This commit is contained in:
@@ -871,9 +871,9 @@ function dol_print_ip($ip,$mode=0)
|
|||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$ret='';
|
$ret='';
|
||||||
|
|
||||||
if (empty($mode)) $ret.=$ip;
|
if (empty($mode)) $ret.=$ip;
|
||||||
|
|
||||||
if (! empty($conf->geoipmaxmind->enabled) && $mode != 2)
|
if (! empty($conf->geoipmaxmind->enabled) && $mode != 2)
|
||||||
{
|
{
|
||||||
$datafile=$conf->global->GEOIPMAXMIND_COUNTRY_DATAFILE;
|
$datafile=$conf->global->GEOIPMAXMIND_COUNTRY_DATAFILE;
|
||||||
@@ -892,7 +892,7 @@ function dol_print_ip($ip,$mode=0)
|
|||||||
else $ret.=' ('.$countrycode.')';
|
else $ret.=' ('.$countrycode.')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1857,9 +1857,11 @@ function dol_print_error($db='',$error='')
|
|||||||
}
|
}
|
||||||
if ($_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_call_file'))
|
if ($_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_call_file'))
|
||||||
{
|
{
|
||||||
|
xdebug_print_function_stack();
|
||||||
$out.='<b>XDebug informations:</b>'."<br>\n";
|
$out.='<b>XDebug informations:</b>'."<br>\n";
|
||||||
$out.='File: '.xdebug_call_file()."<br>\n";
|
$out.='File: '.xdebug_call_file()."<br>\n";
|
||||||
$out.='Line: '.xdebug_call_line()."<br>\n";
|
$out.='Line: '.xdebug_call_line()."<br>\n";
|
||||||
|
$out.='Function: '.xdebug_call_function()."<br>\n";
|
||||||
$out.="<br>\n";
|
$out.="<br>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user