$lang_changed_string .= $mod_strings['LBL_DEFAULT_LANGUAGE_CHANGE'] . $sugar_config['languages'][$default_sugar_instance_lang] . '<br/>'; } } } ksort($sugar_config); if (!write_array_to_file("sugar_config", $sugar_config, "config.php")) { die($mod_strings['ERR_UW_CONFIG_FAILED']); } break; case "module": require_once "ModuleInstall/ModuleInstaller.php"; $mi = new ModuleInstaller(); switch ($mode) { case "Install": $patch = UW_get_patch_from_request($_REQUEST); $mi->setPatch($patch); //here we can determine if this is an upgrade or a new version if (!empty($previous_version)) { $mi->install("{$unzip_dir}", true, $previous_version); } else { $mi->install("{$unzip_dir}"); } $file = "{$unzip_dir}/" . constant('SUGARCRM_POST_INSTALL_FILE'); if (is_file($file)) { print "{$mod_strings['LBL_UW_INCLUDING']}: {$file} <br>\n"; include $file; post_install(); } break; case "Uninstall": if ($remove_tables == 'false') {