company_path() helper used.
[fa-stable.git] / admin / display_prefs.php
index fb7004da738808dcbbda4bd7539ecb345b63422e..78809c0c6c7c56defa38e41feb75c753bcface6b 100644 (file)
@@ -45,7 +45,7 @@ if (isset($_POST['setprefs']))
                        $_SESSION['language']->set_language($_POST['language']);
                        // refresh main menu
 
-               flush_dir($comp_path.'/'.user_company().'/js_cache');   
+               flush_dir(company_path().'/js_cache');  
 
                if ($chg_theme || $chg_lang)
                        meta_forward($_SERVER['PHP_SELF']);