X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Flang%2Flanguage.php;h=0b8ba215021c68587c14f33a58c96e33e90db989;hb=3613e32ad573d5faccb974a421702bdd87583878;hp=824a528ca7ee2da58d35a6aef0c6c13f656064a6;hpb=16b19d2a0218d206004c9b957344c6cd15835e15;p=fa-stable.git diff --git a/includes/lang/language.php b/includes/lang/language.php index 824a528c..0b8ba215 100644 --- a/includes/lang/language.php +++ b/includes/lang/language.php @@ -47,7 +47,7 @@ class language function set_language($code) { - global $comp_path, $path_to_root, $installed_languages; + global $path_to_root, $installed_languages; $changed = $this->code != $code; $lang = array_search_value($code, $installed_languages, 'code'); @@ -55,7 +55,7 @@ class language if ($lang && $changed) { // flush cache as we can use several languages in one account - flush_dir($comp_path.'/'.user_company().'/js_cache'); + flush_dir(company_path().'/js_cache'); $this->name = $lang['name']; $this->code = $lang['code'];