XPressME Integration Kit

Trac

Changeset 77


Ignore:
Timestamp:
Jan 30, 2009, 9:59:58 PM (15 years ago)
Author:
toemon
Message:

モジュールアップデート時にxpressmeプラグインを2度読みしてエラーが発生するバグ修正

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/oninstall.php

    r76 r77  
    7878        $plugin_current = "xpressme/xpressme.php"; 
    7979        update_option('active_plugins', array($plugin_current)); 
    80         include(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
     80        include_once(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
    8181        do_action('activate_'.$plugin_current); 
    8282                 
     
    123123                )$charset_collate;"; 
    124124        dbDelta($views_queries); 
    125  
     125         
    126126        $group_role = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_group_role' ; 
    127127        $views_queries ="CREATE TABLE $group_role ( 
     
    134134                )$charset_collate;"; 
    135135        dbDelta($views_queries); 
    136                          
     136                 
    137137        // make templates 
    138138//      include_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/xpress_templates.php' ; 
  • trunk/include/onupdate.php

    r76 r77  
    4949        $plugin_current = "xpressme/xpressme.php"; 
    5050        update_option('active_plugins', array($plugin_current)); 
    51         include(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
     51        include_once(dirname(__FILE__) . '/../wp-content/plugins/'.$plugin_current); 
    5252        do_action('activate_'.$plugin_current); 
    5353         
Note: See TracChangeset for help on using the changeset viewer.