From 4eddea926e39de39f5c8f65f06abcfdf7810b6cb Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 24 Nov 2008 20:02:14 +0000 Subject: [PATCH] Fixed _vd() ebug function to use also in ajax mode. --- includes/ui/ui_view.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.30.2