XPressME Integration Kit

Trac

Changeset 128


Ignore:
Timestamp:
Mar 21, 2009, 1:21:56 AM (16 years ago)
Author:
toemon
Message:

アップデート時の作業メッセージを追加 bump ver0.12

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/onupdate.php

    r111 r128  
    1010        // transations on module update 
    1111 
    12         global $ret ; // TODO :-D 
    13  
     12        global $msgs ; // TODO :-D 
    1413        // for Cube 2.1 
    1514        if( defined( 'XOOPS_CUBE_LEGACY' ) ) { 
    1615                $root =& XCube_Root::getSingleton(); 
    1716                $root->mDelegateManager->add( 'Legacy.Admin.Event.ModuleUpdate.' . ucfirst($mydirname) . '.Success', 'xpress_message_append_onupdate' ) ; 
    18                 $ret = array() ; 
     17                $msgs = array() ; 
    1918        } else { 
    20                 if( ! is_array( $ret ) ) $ret = array() ; 
     19                if( ! is_array( $msgs ) ) $msgs = array() ; 
    2120        } 
    2221 
     
    3837        if ( get_db_version($mydirname) != $wp_db_version ){ 
    3938                if( function_exists( 'wp_upgrade' ) )   {        
    40                         wp_upgrade(); 
     39                        wp_upgrade();                    
    4140                } else { 
    4241                        wp_cache_flush(); 
     
    4544                        wp_cache_flush(); 
    4645                }                                
     46                        $msgs[] = 'Upgrade Wordpress Database Ver.' . get_db_version($mydirname) .' to' . $wp_db_version; 
    4747        } 
    4848 
     
    5252        include_once(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
    5353        do_action('activate_'.$plugin_current); 
     54        $msgs[] = 'The xpressme plug-in was activated.'; 
     55         
    5456         
    5557//      update_option("blog_charset", wp_blog_charset()); 
     
    7779 
    7880                dbDelta($views_queries); 
     81                $msgs[] = "$views_table table of XPressME was made."; 
    7982        } 
    8083         
     
    101104                        )$charset_collate;"; 
    102105                dbDelta($queries); 
     106                $msgs[] = "$d3forum_link table of XPressME was made."; 
    103107        } 
    104108 
     
    130134                $sql = "INSERT INTO $group_role (groupid, role) VALUES (1, 'administrator')"; 
    131135                $wpdb->query($sql); 
    132  
     136                $msgs[] = "$group_role table of XPressME was made."; 
    133137        } 
    134138         
     
    136140        include_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/xpress_templates_make.php' ; 
    137141        $t_mess = xpress_templates_make($mid,$mydirname); 
    138         $ret = array_merge($ret,$t_mess); 
     142        $msgs = array_merge($msgs,$t_mess); 
    139143         
    140144        return true ; 
  • trunk/xoops_version.php

    r127 r128  
    3131$modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 
    3232$modversion['description'] = constant( '_MI_XPRESS_DESC'); 
    33 $modversion['version'] = "0.11"; 
     33$modversion['version'] = "0.12"; 
    3434$modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 
    3535$modversion['author'] = "toemon (http://www.toemon.com)"; 
     
    4040 
    4141// status 
    42 $modversion['codename'] = "r125"; 
     42$modversion['codename'] = "r128"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
Note: See TracChangeset for help on using the changeset viewer.