zh-tw for existing installations return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.002'; } $test[] = '1.2.100'; function phpgwapi_upgrade1_2_100() { // final 1.2 release 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'; } $test[] = '1.3.002'; function phpgwapi_upgrade1_3_002() { /*************************************************************************\ * add addressbook-type contact into type definition table * \*************************************************************************/ if ($GLOBALS['DEBUG']) { echo "
\ninitiating to create the default type 'contact' for addressbook"; } $newconf = array('n' => array( 'name' => 'contact', 'options' => array( 'template' => 'addressbook.edit', 'icon' => 'navbar.png' ))); $GLOBALS['egw_setup']->oProc->query("INSERT INTO egw_config (config_app,config_name,config_value) VALUES ('addressbook','types','". serialize($newconf). "')",__LINE__,__FILE__); if ($GLOBALS['DEBUG']) { echo " DONE!"; } /*************************************************************************/ return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.003'; } ?>