Changeset 757 for branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php
- Timestamp:
- May 23, 2011, 3:03:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php
r748 r757 6 6 7 7 function list_xpress_update( $update=null ) { 8 global $ xoops_config,$xpress_config;9 10 $xpress_version = $ xoops_config->module_version . $xoops_config->module_codename;8 global $modInfo,$xpress_config; 9 10 $xpress_version = $modInfo->get_module_full_version(); 11 11 $lang = WPLANG; 12 12 … … 139 139 140 140 function do_xpress_upgrade( $develop = false,$reinstall = false ) { 141 global $wp_filesystem,$ xoops_config;141 global $wp_filesystem,$modInfo; 142 142 143 143 if ( $reinstall ) … … 191 191 show_message( __('Please update the module. ', 'xpressme') ); 192 192 193 $update_url = $ xoops_config->module_url.'/admin/update.php';193 $update_url = $modInfo->get_module_url() .'/admin/update.php'; 194 194 show_message( '<strong>' . __('Actions:', 'xpressme') . '</strong> <a href="' . esc_url( $update_url ) . '">' . __('Go to Module Update', 'xpressme') . '</a>' ); 195 195 } … … 216 216 217 217 function xp_remote_get($url, $headers = ""){ 218 global $ xoops_config;219 $xpress_version = $ xoops_config->module_version . $xoops_config->module_codename;220 221 require_once( $ xoops_config->module_path. '/wp-includes/class-snoopy.php');218 global $modInfo; 219 $xpress_version = $modInfo->get_module_full_version(); 220 221 require_once( $modInfo->get_module_path() . '/wp-includes/class-snoopy.php'); 222 222 223 223 // Snoopy is an HTTP client in PHP … … 263 263 function get_xpress_latest_version($check_url=null){ 264 264 global $wp_version, $wpdb, $wp_local_package; 265 global $ xoops_config;266 267 $xpress_version = $ xoops_config->module_version . $xoops_config->module_codename;265 global $modInfo; 266 267 $xpress_version = $modInfo->get_module_full_version(); 268 268 $lang = WPLANG; 269 269 if(is_null($check_url)) … … 362 362 363 363 global $wp_version, $wpdb, $wp_local_package; 364 global $ xoops_config;364 global $modInfo; 365 365 366 366 $php_query_string = $_SERVER['QUERY_STRING']; 367 $xpress_version = $ xoops_config->module_version . $xoops_config->module_codename;367 $xpress_version = $modInfo->get_module_full_version(); 368 368 369 369 $latest = get_option('xpressme_latest_version'); … … 387 387 $latest_version=$latest['latest_version']; 388 388 $check_time=$latest['check_time']; 389 $upgrade_page = $ xoops_config->module_url. "/wp-admin/admin.php?page=upgrade_page";389 $upgrade_page = $modInfo->get_module_url() . "/wp-admin/admin.php?page=upgrade_page"; 390 390 391 391 if (version_compare($xpress_version, $latest_version, '<')) {
Note: See TracChangeset
for help on using the changeset viewer.