Changeset 780 for trunk/xpressme_integration_kit/class/modInfo_class.php
- Timestamp:
- May 30, 2011, 10:37:06 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/class/modInfo_class.php
r776 r780 50 50 function modInfoClass() //for PHP4 constructor 51 51 { 52 global $xoopsModule,$wpConfigInfo ;53 if ( is_object($wpConfigInfo)){52 global $xoopsModule,$wpConfigInfo,$xoopsConfig; 53 if (!is_object($wpConfigInfo)){ 54 54 include_once dirname(__FILE__).'/wpConfigInfo_class.php'; 55 55 $this->wpConfigInfo = new wpConfigInfoClass; 56 56 } 57 $this->xoops_root_path = XOOPS_ROOT_PATH; 57 if (! is_object($xoopsModule)){ 58 $module_handler =& xoops_gethandler('module'); 59 $xoopsModule =& $module_handler->getByDirname(basename(dirname(dirname(__FILE__)))); 60 } 61 62 $this->xoops_root_path = XOOPS_ROOT_PATH; 58 63 $this->xoops_trust_path = (defined('XOOPS_TRUST_PATH')) ? XOOPS_TRUST_PATH : ''; 59 64 $this->xoops_url = XOOPS_URL; … … 78 83 if (function_exists('date_default_timezone_get')){ 79 84 $this->xoops_time_zone = date_default_timezone_get(); 80 } 81 85 } else { 86 $this->xoops_time_zone = $xoopsConfig['default_TZ']; 87 } 82 88 } 83 89 … … 230 236 $module =& $module_handler->getByDirname($dir_name); 231 237 $module_id = $module->getVar('mid'); 232 } 233 238 return $module_id; 239 } 240 234 241 function get_moduleID(){ 235 242 global $xoopsModule;
Note: See TracChangeset
for help on using the changeset viewer.