Fixed display issues when different settings were used for various app users (javascr...
[fa-stable.git] / includes / page / header.inc
index 0ae62638bf7570f688d1f7b85585b9060f07f602..61c155855b3f21953b69108df06ebe09ff5ef490 100644 (file)
@@ -52,7 +52,8 @@ function send_scripts()
        $js ='';
        foreach($js_static as $jsfile)
        {
-           $fpath = company_path().'/js_cache/'.$jsfile;
+               $cached_name = basename($jsfile);
+               $fpath = user_js_cache().'/'.$cached_name;
            // compress also static files
                if (!file_exists($fpath) || $go_debug)
                        cache_js_file($fpath, file_get_contents($js_path.$jsfile));