XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 9, 2010, 10:47:23 AM (14 years ago)
Author:
toemon
Message:

WordPressMU対応コードの削除 Fixes #294

Location:
trunk/xpressme_integration_kit/wp-content/plugins/xpressme
Files:
3 edited

Legend:

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

    r527 r531  
    4141} 
    4242 
    43 function xpress_is_wpmu() { 
    44         global $xoops_config; 
    45          
    46         return $xoops_config->is_wpmu; 
    47 } 
    48  
    4943function xpress_is_multiblog() { 
    5044        global $xoops_config; 
    5145         
    5246        if (defined('MULTISITE')) return MULTISITE; 
    53         return $xoops_config->multiblog; 
     47        return false; 
    5448} 
    5549 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php

    r518 r531  
    213213                echo                    '<table class="form-table">'."\n"; 
    214214                $upload_title = __('Media Upload Base Path','xpressme'); 
    215                 if($xoops_config->is_wpmu) $upload_title = $upload_title . '(WPMU is not select)'; 
     215                if(xpress_is_multiblog()) $upload_title = $upload_title . '(MultiBlog is not select)'; 
    216216                echo                            $xpress_config->yes_no_radio_option('is_use_xoops_upload_path', 
    217217                                                                                                $upload_title, 
    218218                                                                                                __('Use XOOPS UPLOAD PATH','xpressme'), 
    219219                                                                                                __('USE WordPress BASE_PATH','xpressme'), 
    220                                                                                                 $xoops_config->is_wpmu 
     220                                                                                                xpress_is_multiblog() 
    221221                                                                                                ); 
    222222                $lock = ($xoops_config->module_url != get_bloginfo('url')); 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php

    r518 r531  
    303303 
    304304                global $xoops_config; 
    305                 if($xoops_config->is_wpmu) $this->is_use_xoops_upload_path = false; 
     305                if(xpress_is_multiblog()) $this->is_use_xoops_upload_path = false; 
    306306 
    307307                $table = get_wp_prefix() . 'group_role';         
     
    584584                        $selected = ''; 
    585585                 
    586                 if ($xoops_config->is_wpmu) { 
    587                         $forum_list .= '<option value="none"' . $selected . '>' . __('WordPress MU cannot integrate the comments.', 'xpressme') . "</option>\n"; 
     586                if (xpress_is_multiblog()) { 
     587                        $forum_list .= '<option value="none"' . $selected . '>' . __('WordPress MultiBlog cannot integrate the comments.', 'xpressme') . "</option>\n"; 
    588588                } else {         
    589589                        $forum_list .= '<option value="none"' . $selected . '>' . __('Do Not Comment Integration.', 'xpressme') . "</option>\n"; 
Note: See TracChangeset for help on using the changeset viewer.