- Timestamp:
- May 23, 2011, 3:03:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/include/data.inc.php
r749 r757 31 31 global $xoopsDB; 32 32 33 $module_handler =& xoops_gethandler('module'); 34 $module =& $module_handler->getByDirname($mydirname); 35 $module_id = $module->getVar('mid'); 36 33 37 $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 34 38 require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php'); 35 39 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'];42 40 43 41 $table_config = $xoopsDB->prefix('config');
Note: See TracChangeset
for help on using the changeset viewer.