Changeset 128
- Timestamp:
- Mar 21, 2009, 1:21:56 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/onupdate.php
r111 r128 10 10 // transations on module update 11 11 12 global $ret ; // TODO :-D 13 12 global $msgs ; // TODO :-D 14 13 // for Cube 2.1 15 14 if( defined( 'XOOPS_CUBE_LEGACY' ) ) { 16 15 $root =& XCube_Root::getSingleton(); 17 16 $root->mDelegateManager->add( 'Legacy.Admin.Event.ModuleUpdate.' . ucfirst($mydirname) . '.Success', 'xpress_message_append_onupdate' ) ; 18 $ ret= array() ;17 $msgs = array() ; 19 18 } else { 20 if( ! is_array( $ ret ) ) $ret= array() ;19 if( ! is_array( $msgs ) ) $msgs = array() ; 21 20 } 22 21 … … 38 37 if ( get_db_version($mydirname) != $wp_db_version ){ 39 38 if( function_exists( 'wp_upgrade' ) ) { 40 wp_upgrade(); 39 wp_upgrade(); 41 40 } else { 42 41 wp_cache_flush(); … … 45 44 wp_cache_flush(); 46 45 } 46 $msgs[] = 'Upgrade Wordpress Database Ver.' . get_db_version($mydirname) .' to' . $wp_db_version; 47 47 } 48 48 … … 52 52 include_once(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 53 53 do_action('activate_'.$plugin_current); 54 $msgs[] = 'The xpressme plug-in was activated.'; 55 54 56 55 57 // update_option("blog_charset", wp_blog_charset()); … … 77 79 78 80 dbDelta($views_queries); 81 $msgs[] = "$views_table table of XPressME was made."; 79 82 } 80 83 … … 101 104 )$charset_collate;"; 102 105 dbDelta($queries); 106 $msgs[] = "$d3forum_link table of XPressME was made."; 103 107 } 104 108 … … 130 134 $sql = "INSERT INTO $group_role (groupid, role) VALUES (1, 'administrator')"; 131 135 $wpdb->query($sql); 132 136 $msgs[] = "$group_role table of XPressME was made."; 133 137 } 134 138 … … 136 140 include_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/xpress_templates_make.php' ; 137 141 $t_mess = xpress_templates_make($mid,$mydirname); 138 $ ret = array_merge($ret,$t_mess);142 $msgs = array_merge($msgs,$t_mess); 139 143 140 144 return true ; -
trunk/xoops_version.php
r127 r128 31 31 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 32 32 $modversion['description'] = constant( '_MI_XPRESS_DESC'); 33 $modversion['version'] = "0.1 1";33 $modversion['version'] = "0.12"; 34 34 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 35 35 $modversion['author'] = "toemon (http://www.toemon.com)"; … … 40 40 41 41 // status 42 $modversion['codename'] = "r12 5";42 $modversion['codename'] = "r128"; 43 43 44 44 // onInstall, onUpdate, onUninstall
Note: See TracChangeset
for help on using the changeset viewer.