Changeset 208
- Timestamp:
- May 19, 2009, 7:34:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/onupdate.php
r187 r208 23 23 $mid = $module->getVar('mid') ; 24 24 25 // XPressME orignal table updayte 25 26 27 //XPressME Update 28 global $wpdb,$wp_rewrite, $wp_queries, $table_prefix, $wp_db_version, $wp_roles,$wp_query; 29 define('WP_INSTALLING', true); 30 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 31 $path = $mydirpath . '/'; 32 33 /* 34 * xpress_put_siteurl($mydirname,''); 35 * Call to a member function register() The on a non-object error is evaded. 36 * It happens by register_widget() that exists in wp-includes/widgets.php. 37 * The blog is not installed. It is cheating to function wp_maybe_load_widgets(). 38 * As a result, default-widgets.php is not loaded. 39 */ 40 xpress_put_siteurl($mydirname,''); // Site_url is temporarily deleted. 41 42 if (file_exists($path . 'wp-load.php')) { 43 require_once $path . 'wp-load.php'; 44 } else { 45 require_once $path . 'wp-config.php'; 46 } 47 48 // XPressME orignal table update 26 49 if (! enhanced_table_check($mydirname,'views')){ 27 50 $xp_prefix = $mydirname; … … 114 137 $msgs = array_merge($msgs,$t_mess); 115 138 116 117 //Wordpress TABLE UPGRADE 118 global $wpdb,$wp_rewrite, $wp_queries, $table_prefix, $wp_db_version, $wp_roles,$wp_query; 119 define('WP_INSTALLING', true); 120 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 121 $path = $mydirpath . '/'; 122 123 /* 124 * xpress_put_siteurl($mydirname,''); 125 * Call to a member function register() The on a non-object error is evaded. 126 * It happens by register_widget() that exists in wp-includes/widgets.php. 127 * The blog is not installed. It is cheating to function wp_maybe_load_widgets(). 128 * As a result, default-widgets.php is not loaded. 129 */ 130 xpress_put_siteurl($mydirname,''); // Site_url is temporarily deleted. 131 132 if (file_exists($path . 'wp-load.php')) { 133 require_once $path . 'wp-load.php'; 134 } else { 135 require_once $path . 'wp-config.php'; 136 } 139 // upgrade WordPress 137 140 138 141 $site_url= XOOPS_URL."/modules/".$mydirname;
Note: See TracChangeset
for help on using the changeset viewer.