A couple of smaller fixes.
[fa-stable.git] / includes / ui / ui_view.inc
index 0bc4ac06d794b6ef0a5bc3d818838a691c631cb6..9306aa5d0a84ba1d1598dc9ead62afe924d4d83a 100644 (file)
@@ -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 .':') : '') .'<pre>';
        $str .= print_r($mixed, true); //var_dump($mixed);
        $str .= "</pre>\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) {