From 34dce753f799a44f8645db4e5fa45cabef7b0f68 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 23 Sep 2010 16:22:23 +0000 Subject: [PATCH] Additonal error logging helper. --- includes/ui/ui_view.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 0bc4ac06..9306aa5d 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -1290,7 +1290,6 @@ if (!function_exists('_vd')) { function _vd($mixed, $title = '', $exit = false) { - // Only the site admin is able to proceed here. $str = (!empty($title) ? ($title .':') : '') .'
';
     	$str .= print_r($mixed, true); //var_dump($mixed);
     	$str .= "
\n"; @@ -1300,6 +1299,13 @@ if (!function_exists('_vd')) } } +function _vl($mixed, $title = '', $exit = false) +{ + error_log((!empty($title) ? ($title .':') : '') . var_export($mixed, true)); + if ($exit) + exit; +} + function display_backtrace($cond=true, $msg='') { if ($cond) { -- 2.30.2