diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index fa8cf473a3..157cc84711 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -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; diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 3fe909e8d0..80234a3c8b 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -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'; + } ?>