From c78d15363f1d9d82d5d1c6ce819b0bb533f4c7f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Sat, 17 Oct 2009 13:47:17 +0000 Subject: [PATCH] More informations if using XDebug --- htdocs/lib/functions.lib.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 2527c962e76..cf956be5784 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -871,9 +871,9 @@ function dol_print_ip($ip,$mode=0) global $conf,$langs; $ret=''; - + if (empty($mode)) $ret.=$ip; - + if (! empty($conf->geoipmaxmind->enabled) && $mode != 2) { $datafile=$conf->global->GEOIPMAXMIND_COUNTRY_DATAFILE; @@ -892,7 +892,7 @@ function dol_print_ip($ip,$mode=0) else $ret.=' ('.$countrycode.')'; } } - + return $ret; } @@ -1857,9 +1857,11 @@ function dol_print_error($db='',$error='') } if ($_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_call_file')) { + xdebug_print_function_stack(); $out.='<b>XDebug informations:</b>'."<br>\n"; $out.='File: '.xdebug_call_file()."<br>\n"; $out.='Line: '.xdebug_call_line()."<br>\n"; + $out.='Function: '.xdebug_call_function()."<br>\n"; $out.="<br>\n"; } -- GitLab