XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 23, 2010, 10:49:33 AM (15 years ago)
Author:
toemon
Message:

xoops_mod_wordpress060_alphaの複製モジュールからのアップデート対応 fixes#335

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/data.inc.php

    r426 r583  
    3131        global $xoopsDB; 
    3232 
    33         if ($mydirname == 'wordpress'){ 
    34                 $wp_prefix = 'wp'; 
    35         } else { 
    36                 $wp_prefix = $mydirname; 
    37         } 
     33        $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    3834        require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 
    3935        include(XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/wp-includes/version.php'); 
     
    163159 
    164160        global $xoopsDB; 
    165  
    166         if ($mydirname == 'wordpress'){ 
    167                 $wp_prefix = 'wp'; 
    168         } else { 
    169                 $wp_prefix = $mydirname; 
    170         } 
     161        $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    171162        require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 
    172163        $prefix = $xoopsDB->prefix($wp_prefix); 
     
    208199 
    209200        global $xoopsDB; 
    210  
    211         if ($mydirname == 'wordpress'){ 
    212                 $wp_prefix = 'wp'; 
    213         } else { 
    214                 $wp_prefix = $mydirname; 
    215         } 
     201        $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    216202         
    217203        require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 
Note: See TracChangeset for help on using the changeset viewer.