XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 31, 2009, 12:43:04 PM (16 years ago)
Author:
toemon
Message:

オブジェクト名$XPressMEを$xpress_configに変更(気分的な問題)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/xpressme/xpressme.php

    r104 r144  
    1717$xoops_db->tables = array('modules', 'newblocks', 'users'); 
    1818 
    19 $XPressME = new XPressME_Class(); 
     19$xpress_config = new XPressME_Class(); 
    2020 
    2121require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 
    2222 
    23 add_action('admin_menu', array(&$XPressME, 'add_option_page')); 
    24 add_action('admin_head', array(&$XPressME, 'add_admin_head')); 
    25 add_filter("upload_dir",array(&$XPressME, 'xpress_upload_filter'),      1);             // Change wp-include/wp_upload_dir() 
    26 if (!$XPressME->is_save_post_revision){ 
     23add_action('admin_menu', array(&$xpress_config, 'add_option_page')); 
     24add_action('admin_head', array(&$xpress_config, 'add_admin_head')); 
     25add_filter("upload_dir",array(&$xpress_config, 'xpress_upload_filter'), 1);             // Change wp-include/wp_upload_dir() 
     26if (!$xpress_config->is_save_post_revision){ 
    2727        remove_action( 'pre_post_update', 'wp_save_post_revision' );                    // Not Save Post Revision 
    2828} 
     
    5555 
    5656//D3Forum Comment Integration 
    57 if ($XPressME->is_use_d3forum){ 
     57if ($xpress_config->is_use_d3forum){ 
    5858        require_once dirname( __FILE__ ).'/include/d3forum_comment_synchro.php' ; 
    5959        add_action("comment_post",      "onaction_comment_post"); 
     
    7070 
    7171// SQL debug windows 
    72 add_filter('query', array(&$XPressME, 'xpress_sql_debug')); 
    73 add_action('admin_footer', array(&$XPressME, 'displayDebugLog')); 
    74 add_action('get_footer', array(&$XPressME, 'displayDebugLog')); 
     72add_filter('query', array(&$xpress_config, 'xpress_sql_debug')); 
     73add_action('admin_footer', array(&$xpress_config, 'displayDebugLog')); 
     74add_action('get_footer', array(&$xpress_config, 'displayDebugLog')); 
    7575?> 
Note: See TracChangeset for help on using the changeset viewer.