Changeset 773
- Timestamp:
- May 24, 2011, 9:14:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.5/xpressme_integration_kit/wp-content/plugins/xpressme/include/update_xpress.php
r704 r773 29 29 */ 30 30 function update_xpress($from, $to) { 31 global $wp_filesystem, $_old_xpress_files, $wpdb ;31 global $wp_filesystem, $_old_xpress_files, $wpdb, $modInfo; 32 32 show_message( __('Disable overwrite of wp-config.php...', 'xpressme') ); 33 34 $mod_ver = $modInfo->get_module_version(); 35 // Rewrite wp-config.php when update it to Ver.3 from Ver.2. 36 if (version_compare($mod_ver, '3.0', '>=')){ 37 if (file_exists($wp_version_file)){ 38 include $wp_version_file; 39 $now_virsion = str_replace("ME", "", $wp_version); 40 } 41 } 33 42 // remove wp-config.php from the new version into place. 34 43 $wp_config = $from . 'wp-config.php';
Note: See TracChangeset
for help on using the changeset viewer.