fixed omgs change (zt --> zh-tw) from nov. 2005 for existing installs

This commit is contained in:
Ralf Becker 2006-03-14 10:55:37 +00:00
parent 05e1b2d1e7
commit 5b27ac85ce
2 changed files with 18 additions and 1 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'eGroupWare API';
$setup_info['phpgwapi']['version'] = '1.3.001';
$setup_info['phpgwapi']['version'] = '1.3.002';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;

View File

@ -24,4 +24,21 @@
{
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.001';
}
$test[] = '1.2.008';
function phpgwapi_upgrade1_2_008()
{
// fixing the lang change from zt -> zh-tw for existing installations
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.002';
}
// updates in HEAD / 1.3
$test[] = '1.3.001';
function phpgwapi_upgrade1_3_001()
{
// fixing the lang change from zt -> zh-tw for existing installations
$GLOBALS['egw_setup']->db->update('egw_languages',array('lang_id' => 'zh-tw'),array('lang_id' => 'zt'),__LINE__,__FILE__);
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.002';
}
?>