- Timestamp:
- Apr 24, 2011, 12:53:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_block_render.php
r708 r716 156 156 $block['err_message'] = $block_theme_file['error']; 157 157 } else { 158 if (xpress_block_cache_found($mydirname,$cache_title. $blockID)){ 159 $xml = xpress_block_cache_read($mydirname,$cache_title. $blockID); 160 $block = $xml['block']; 158 global $xoops_config,$xoopsUserIsAdmin; 159 $cache_dir = $xoops_config->xoops_cache_path; 160 if(!is_writable($cache_dir)){ 161 $block['err_message'] = _MB_XP2_CACHE_NOT_WRITABLE ; 162 if($xoopsUserIsAdmin) 163 $block['err_message'] .= " ($cache_dir)"; 161 164 } else { 162 $block['err_message'] = sprintf(_MB_XP2_BLOCK_CACHE_ERR, '<a href="' . XOOPS_URL . '/modules/' . $mydirname . '">' . $mydirname .'</a>'); 165 if (xpress_block_cache_found($mydirname,$cache_title. $blockID)){ 166 $xml = xpress_block_cache_read($mydirname,$cache_title. $blockID); 167 $block = $xml['block']; 168 } else { 169 $block['err_message'] = sprintf(_MB_XP2_BLOCK_CACHE_ERR, '<a href="' . XOOPS_URL . '/modules/' . $mydirname . '">' . $mydirname .'</a>'); 170 } 163 171 } 164 172 }
Note: See TracChangeset
for help on using the changeset viewer.