XPressME Integration Kit

Trac

Changeset 78


Ignore:
Timestamp:
Jan 31, 2009, 9:58:35 AM (15 years ago)
Author:
toemon
Message:

xpressmeプラグイン有効化にて、インストール時や一旦無効化後の有効化では、pluggable-override.phpが後出しになるので、関数重複エラーが発生してしまうバグを修正

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/oninstall.php

    r77 r78  
    7575//      update_option('upload_path', $module->getVar("dirname")); 
    7676         
    77         /* activate the tag plugin */ 
     77        /* activate the XPressME plugin */ 
    7878        $plugin_current = "xpressme/xpressme.php"; 
    7979        update_option('active_plugins', array($plugin_current)); 
     
    8585        $wpdb->query("ALTER TABLE $wpdb->posts CHANGE `post_author` `post_author` mediumint(8) NOT NULL DEFAULT '0'"); 
    8686        $ID = is_object($GLOBALS["xoopsUser"])?$GLOBALS["xoopsUser"]->getVar("uid"):1; 
    87         require_once($mydirpath . '/include/user_sync.php'); 
    88         xpress_user_sync($ID); 
     87//      require_once($mydirpath . '/include/user_sync.php'); 
     88        $sync_messg = ''; 
     89        xpress_user_sync($ID,$sync_messg);              //this function in XPressME plugin  
    8990 
    9091        // Set Default data 
  • trunk/wp-content/plugins/xpressme/xpressme.php

    r75 r78  
    1717 
    1818$XPressME = new XPressME_Class(); 
    19 if (!is_admin_page_call()){ 
     19if (is_xpress_index_page_call()){ 
    2020        require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 
    2121} 
Note: See TracChangeset for help on using the changeset viewer.