From: Janusz Dobrowolski Date: Mon, 24 Nov 2008 20:02:14 +0000 (+0000) Subject: Fixed _vd() ebug function to use also in ajax mode. X-Git-Tag: v2.4.2~19^2~1725 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=4eddea926e39de39f5c8f65f06abcfdf7810b6cb;p=fa-stable.git Fixed _vd() ebug function to use also in ajax mode. --- diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 2be9bbd1..221ba624 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -1094,9 +1094,10 @@ if (!function_exists('_vd')) function _vd($mixed, $title = '', $exit = false) { // Only the site admin is able to proceed here. - echo (!empty($title) ? ($title .':') : '') .'
';
-    	var_dump($mixed);
-    	echo "
\n"; + $str = (!empty($title) ? ($title .':') : '') .'
';
+    	$str .= print_r($mixed, true); //var_dump($mixed);
+    	$str .= "
\n"; + display_error('
'.$str.'
'); if ($exit) exit; }