"fixed warning of not writable lang directory to cater for new location"

This commit is contained in:
Ralf Becker 2009-12-03 16:45:51 +00:00
parent 13cb41a882
commit de2589963a

View File

@ -1037,21 +1037,11 @@ class soetemplate
}
ksort($langarr);
$dir = EGW_SERVER_ROOT . "/$app/setup";
$dir = EGW_SERVER_ROOT . "/$app/lang";
if (!is_writeable($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->loaddb($app,$lang);