- Timestamp:
- May 23, 2011, 3:03:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/include/xpress_cache.php
r719 r757 4 4 if(!function_exists("cache_is_writable")): 5 5 function cache_is_writable(){ 6 global $ xoops_config;7 $cache_dir = $ xoops_config->xoops_cache_path. '/';6 global $modInfo; 7 $cache_dir = $modInfo->get_xoops_cache_path() . '/'; 8 8 $filename = $cache_dir .'xpress_cache_test.txt'; 9 9 $fp = @fopen($filename, "w"); … … 30 30 function xpress_cache_read($mydirname,$collation_key) 31 31 { 32 global $ xoops_config;32 global $modInfo; 33 33 34 $cache_dir = $ xoops_config->xoops_cache_path. '/';34 $cache_dir = $modInfo->get_xoops_cache_path() . '/'; 35 35 $filename = $cache_dir .$mydirname . '_' . $collation_key; 36 36 if (xpress_cache_found($filename)) { … … 45 45 function xpress_cache_write($mydirname,$collation_key,$content) 46 46 { 47 global $ xoops_config;48 $cache_dir = $ xoops_config->xoops_cache_path. '/';47 global $modInfo; 48 $cache_dir = $modInfo->get_xoops_cache_path() . '/'; 49 49 $cache_time = 0; 50 50 … … 62 62 function xpress_cache_clear($mydirname) 63 63 { 64 global $ xoops_config;65 $cache_dir = $ xoops_config->xoops_cache_path. '/';64 global $modInfo; 65 $cache_dir = $modInfo->get_xoops_cache_path() . '/'; 66 66 $cache_time = 0; 67 67 if ($dh = opendir($cache_dir)) {
Note: See TracChangeset
for help on using the changeset viewer.