- Timestamp:
- Sep 17, 2010, 11:13:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/class/config_from_xoops.class.php
r614 r657 20 20 var $xoops_url; 21 21 var $xoops_trust_path; 22 var $xoops_cache_path; 22 23 var $xoops_db_prefix; 23 24 var $xoops_db_name; … … 101 102 $this->xoops_time_zone = date_default_timezone_get(); 102 103 } 104 $this->_get_cache_path(); 103 105 } 104 106 … … 253 255 if(defined('XOOPS_SALT')) $this->xoops_salt = XOOPS_SALT; else $this->xoops_salt = ''; 254 256 } // end of if file_exists 255 } 257 } 258 259 // call after the $this->xoops_trust_path is set 260 function _get_cache_path(){ 261 $cache_path = $this->xoops_trust_path . '/cache'; 262 if (file_exists($cache_path) && is_writable($cache_path)){ 263 $this->xoops_cache_path = $cache_path; 264 return; 265 } 266 $this->xoops_cache_path = $this->xoops_root_path . '/cache'; 267 } 256 268 257 269 function get_xoops_mainfile_path(){
Note: See TracChangeset
for help on using the changeset viewer.