projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Layout - added class label for branch link
[fa-stable.git]
/
includes
/
lang
/
language.php
diff --git
a/includes/lang/language.php
b/includes/lang/language.php
index 824a528ca7ee2da58d35a6aef0c6c13f656064a6..0b8ba215021c68587c14f33a58c96e33e90db989 100644
(file)
--- a/
includes/lang/language.php
+++ b/
includes/lang/language.php
@@
-47,7
+47,7
@@
class language
function set_language($code)
{
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');
$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
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'];
$this->name = $lang['name'];
$this->code = $lang['code'];