- Timestamp:
- May 19, 2011, 6:47:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/class/wpInfo_class.php
r746 r749 88 88 } 89 89 function __construct() { 90 global $xoopsDB; 90 91 $this->mod_dirpath = dirname(dirname(__FILE__)); 91 92 $this->mod_name = basename(dirname(dirname(__FILE__))); … … 94 95 $this->xoops_Lang = @$GLOBALS["xoopsConfig"]['language']; 95 96 $this->php_version = phpversion(); 96 $xoopsDB =& Database::getInstance();97 97 list($SV) = $xoopsDB->fetchRow($xoopsDB->query('SELECT version()')); 98 98 $this->mysql_version = $SV; … … 147 147 148 148 function is_wpdb_installed(){ 149 global $xoopsDB; 149 150 $prefix_mod = XOOPS_DB_PREFIX .'_' . preg_replace('/wordpress/','wp',$this->mod_name) . '_'; 150 $xoopsDB =& Database::getInstance();151 151 $sql = "SHOW TABLES LIKE '$prefix_mod%'"; 152 152 if ($result = $xoopsDB->queryf($sql)){
Note: See TracChangeset
for help on using the changeset viewer.