Changeset 144 for trunk/wp-content/plugins/xpressme/xpressme.php
- Timestamp:
- Mar 31, 2009, 12:43:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/xpressme.php
r104 r144 17 17 $xoops_db->tables = array('modules', 'newblocks', 'users'); 18 18 19 $ XPressME= new XPressME_Class();19 $xpress_config = new XPressME_Class(); 20 20 21 21 require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 22 22 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){23 add_action('admin_menu', array(&$xpress_config, 'add_option_page')); 24 add_action('admin_head', array(&$xpress_config, 'add_admin_head')); 25 add_filter("upload_dir",array(&$xpress_config, 'xpress_upload_filter'), 1); // Change wp-include/wp_upload_dir() 26 if (!$xpress_config->is_save_post_revision){ 27 27 remove_action( 'pre_post_update', 'wp_save_post_revision' ); // Not Save Post Revision 28 28 } … … 55 55 56 56 //D3Forum Comment Integration 57 if ($ XPressME->is_use_d3forum){57 if ($xpress_config->is_use_d3forum){ 58 58 require_once dirname( __FILE__ ).'/include/d3forum_comment_synchro.php' ; 59 59 add_action("comment_post", "onaction_comment_post"); … … 70 70 71 71 // 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'));72 add_filter('query', array(&$xpress_config, 'xpress_sql_debug')); 73 add_action('admin_footer', array(&$xpress_config, 'displayDebugLog')); 74 add_action('get_footer', array(&$xpress_config, 'displayDebugLog')); 75 75 ?>
Note: See TracChangeset
for help on using the changeset viewer.