Changeset 172 for trunk/include/xpress_block_render.php
- Timestamp:
- Apr 10, 2009, 2:40:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_block_render.php
r165 r172 1 1 <?php 2 if(!defined('XPRESS_BLOCK_RENDER_FUNCTION_READ')){ 3 define('XPRESS_BLOCK_RENDER_FUNCTION_READ',1); 2 4 require_once dirname( __FILE__ ) .'/xml.php' ; 3 5 require_once dirname( __FILE__ ) .'/xpress_cache.php' ; … … 190 192 } 191 193 192 function xpress_block_cache_refresh( )194 function xpress_block_cache_refresh($mydirname) 193 195 { 194 196 global $xoops_db; … … 196 198 $sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid AND visible = 1"; 197 199 $blocks = $xoops_db->get_results($sql); 198 $mydirname = get_xpress_dir_name();199 200 require_once get_xpress_dir_path() . '/include/xpress_block_render.php'; 200 201 … … 228 229 } 229 230 230 function xpress_unnecessary_block_cache_delete( )231 function xpress_unnecessary_block_cache_delete($mydirname) 231 232 { 232 233 global $xoops_db,$xoops_config; … … 234 235 $sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid AND visible = 1"; 235 236 $blocks = $xoops_db->get_results($sql); 236 $mydirname = get_xpress_dir_name();237 237 require_once get_xpress_dir_path() . '/include/xpress_block_render.php'; 238 238 … … 258 258 } 259 259 } 260 260 } 261 261 ?>
Note: See TracChangeset
for help on using the changeset viewer.