Changeset 757 for branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php
- Timestamp:
- May 23, 2011, 3:03:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php
r639 r757 55 55 function setDefault() 56 56 { 57 global $ xoops_config;57 global $modInfo; 58 58 $this->is_use_xoops_upload_path = true; 59 59 $this->is_use_xoops_upload_path = true; … … 117 117 function SettingValueWrite($mode) 118 118 { 119 global $ xoops_config;119 global $modInfo; 120 120 121 121 $write_options = array ( … … 442 442 } // end of loop 443 443 444 global $ xoops_config;444 global $modInfo; 445 445 446 446 $table = get_wp_prefix() . 'group_role'; … … 788 788 789 789 function d3forum_option($do_message = ''){ 790 global $xoops_db,$ xoops_config;790 global $xoops_db,$modInfo; 791 791 792 792 $multi_blog_use_d3forum = true; … … 809 809 // Form making for forum selection of D3forum 810 810 $modules_table = get_xoops_prefix() .'modules'; 811 $sql = "SELECT mid,name,isactive,dirname FROM $modules_table WHERE isactive = 1";811 $sql = "SELECT name,isactive,dirname FROM $modules_table WHERE isactive = 1"; 812 812 $modules = $xoops_db->get_results($sql); 813 813 foreach ($modules as $module) { … … 1051 1051 function xpress_upload_filter($uploads) 1052 1052 { 1053 global $ xoops_config;1053 global $modInfo; 1054 1054 global $blog_id,$blogname; 1055 1055 1056 1056 if ($this->is_use_xoops_upload_path){ 1057 1057 $wordpress_dir = ABSPATH ; 1058 $xoops_dir = $ xoops_config->xoops_upload_path. '/';1058 $xoops_dir = $modInfo->get_xoops_upload_path() . '/'; 1059 1059 if (xpress_is_multiblog() && $blog_id <> BLOG_ID_CURRENT_SITE){ 1060 $wordpress_base_url = $ xoops_config->module_url;1060 $wordpress_base_url = $modInfo->get_module_url(); 1061 1061 } else { 1062 1062 $wordpress_base_url = get_option( 'siteurl' ); 1063 1063 } 1064 $xoops_upload_url = $ xoops_config->xoops_upload_url;1064 $xoops_upload_url = $modInfo->get_xoops_upload_url(); 1065 1065 // @rmdir($uploads[path]); //remove wordpress side uploads_dir 1066 1066
Note: See TracChangeset
for help on using the changeset viewer.