* Admin/Setup: fixed custom translations got lost during update

This commit is contained in:
Ralf Becker 2012-02-27 08:03:30 +00:00
parent 60bcbebd88
commit 820df063ef

View File

@ -668,7 +668,8 @@ class translation
if ($upgrademethod == 'dumpold')
{
// dont delete the custom main- & loginscreen messages every time
self::$db->delete(self::LANG_TABLE,"app_name!='mainscreen' AND app_name!='loginscreen'",__LINE__,__FILE__);
self::$db->delete(self::LANG_TABLE,self::$db->expression(self::LANG_TABLE,
'NOT ',array('app_name'=>self::$instance_specific_translations)),__LINE__,__FILE__);
//echo '<br>Test: dumpold';
$GLOBALS['egw_info']['server']['lang_ctimes'] = array();
}