company_path() helper used.
[fa-stable.git] / includes / ui / ui_view.inc
index 65b6bf91f00541814f581ad3dcc62616870f6b24..fe54a261bc2637c68c444ad678d816636701c343 100644 (file)
@@ -799,8 +799,8 @@ function get_js_png_fix()
 
 function get_js_date_picker()
 {
-    global $comp_path, $go_debug;
-    $fpath = $comp_path.'/'.user_company().'/js_cache/'.'date_picker.js';
+    global $go_debug;
+    $fpath = company_path().'/js_cache/'.'date_picker.js';
 
     if (!file_exists($fpath) || $go_debug) {
 
@@ -1266,7 +1266,7 @@ if (!function_exists('_vd'))
        $str = (!empty($title) ? ($title .':') : '') .'<pre>';
        $str .= print_r($mixed, true); //var_dump($mixed);
        $str .= "</pre>\n";
-               display_error('<table><tr><td>'.$str.'</td></tr></table>');
+               display_notification('<table><tr><td>'.$str.'</td></tr></table>');
        if ($exit)
                exit;
        }