mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
"fixed warning of not writable lang directory to cater for new location"
This commit is contained in:
parent
13cb41a882
commit
de2589963a
@ -1037,21 +1037,11 @@ class soetemplate
|
|||||||
}
|
}
|
||||||
ksort($langarr);
|
ksort($langarr);
|
||||||
|
|
||||||
$dir = EGW_SERVER_ROOT . "/$app/setup";
|
$dir = EGW_SERVER_ROOT . "/$app/lang";
|
||||||
if (!is_writeable($dir))
|
if (!is_writeable($dir))
|
||||||
{
|
{
|
||||||
return lang("Error: webserver is not allowed to write into '%1' !!!",$dir);
|
return lang("Error: webserver is not allowed to write into '%1' !!!",$dir);
|
||||||
}
|
}
|
||||||
$file = "$dir/phpgw_$lang.lang";
|
|
||||||
if (file_exists($file))
|
|
||||||
{
|
|
||||||
$old_file = "$dir/phpgw_$lang.old.lang";
|
|
||||||
if (file_exists($old_file))
|
|
||||||
{
|
|
||||||
unlink($old_file);
|
|
||||||
}
|
|
||||||
rename($file,$old_file);
|
|
||||||
}
|
|
||||||
$solangfile->write_file($app,$langarr,$lang);
|
$solangfile->write_file($app,$langarr,$lang);
|
||||||
$solangfile->loaddb($app,$lang);
|
$solangfile->loaddb($app,$lang);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user