XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 23, 2011, 3:03:57 PM (14 years ago)
Author:
toemon
Message:

ConfigFromXoopsクラスを廃止し、modInfoクラスを使用するように変更
WP2.2以下で使用するテンプレートold_templateの廃止

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver3.0/xpressme_integration_kit/include/data.inc.php

    r749 r757  
    3131        global $xoopsDB; 
    3232 
     33        $module_handler =& xoops_gethandler('module'); 
     34        $module =& $module_handler->getByDirname($mydirname); 
     35        $module_id = $module->getVar('mid'); 
     36         
    3337        $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    3438        require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 
    3539        include(XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/wp-includes/version.php'); 
    36  
    37         $modules_table = $xoopsDB->prefix('modules'); 
    38         $modSQL ="SELECT mid FROM " . $modules_table . " WHERE dirname LIKE '" . $mydirname . "'"; 
    39         $modRes = $xoopsDB->query($modSQL, 0, 0); 
    40         $modRow = $xoopsDB->fetchArray($modRes); 
    41         $module_id = $modRow['mid']; 
    4240 
    4341        $table_config = $xoopsDB->prefix('config'); 
Note: See TracChangeset for help on using the changeset viewer.