Changeset 394 for trunk/xpressme_integration_kit
- Timestamp:
- Oct 7, 2009, 8:21:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_block_render.php
r387 r394 206 206 global $xoops_db; 207 207 $mid = get_xpress_modid(); 208 $sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid AND visible = 1"; 208 209 // It is a block that needs cache arranged outside the module. 210 // Only the block arranged outside the module is detected here. 211 $newblocks = get_xoops_prefix() . "newblocks"; 212 $block_module_link = get_xoops_prefix(). "block_module_link"; 213 $sql = "SELECT * FROM $newblocks LEFT JOIN $block_module_link ON {$newblocks}.bid = {$block_module_link}.block_id "; 214 $sql .= "WHERE {$newblocks}.mid = $mid AND {$newblocks}.visible = 1 AND {$block_module_link}.module_id != $mid "; 215 $sql .= "GROUP BY {$newblocks}.bid"; 216 209 217 $blocks = $xoops_db->get_results($sql); 210 218 require_once get_xpress_dir_path() . '/include/xpress_block_render.php';
Note: See TracChangeset
for help on using the changeset viewer.