From: Janusz Dobrowolski Date: Thu, 23 Sep 2010 16:22:23 +0000 (+0000) Subject: Additonal error logging helper. X-Git-Tag: v2.4.2~19^2~615 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=34dce753f799a44f8645db4e5fa45cabef7b0f68;p=fa-stable.git Additonal error logging helper. --- 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) {