Changeset 775
- Timestamp:
- May 24, 2011, 10:06:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/update_xpress.php
r745 r775 33 33 */ 34 34 function update_xpress($from, $to) { 35 global $wp_filesystem, $_old_xpress_files, $wpdb ;35 global $wp_filesystem, $_old_xpress_files, $wpdb, $modInfo; 36 36 show_message( __('Disable overwrite of wp-config.php...', 'xpressme') ); 37 // remove wp-config.php from the new version into place. 38 $wp_config = $from . 'wp-config.php'; 39 if ( !$wp_filesystem->delete($wp_config, true)){ 40 return new WP_Error('delete_failed', $this->strings['delete_failed']); 37 $mod_ver = $modInfo->get_module_version(); 38 // Rewrite wp-config.php when update it to Ver.3 from Ver.2. 39 if (version_compare($mod_ver, '3.0', '>=')){ 40 // remove wp-config.php from the new version into place. 41 $wp_config = $from . 'wp-config.php'; 42 if ( !$wp_filesystem->delete($wp_config, true)){ 43 return new WP_Error('delete_failed', $this->strings['delete_failed']); 44 } 41 45 } 42 43 46 // Copy new versions of XPressME Integration Kit files into place. 44 47 show_message( __('Copy new versions of XPressME Integration Kit files into place...', 'xpressme') );
Note: See TracChangeset
for help on using the changeset viewer.