Changeset 172
- Timestamp:
- Apr 10, 2009, 2:40:40 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 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 ?> -
trunk/wp-config.php
r171 r172 101 101 // This Function in xpressme plugin 102 102 require_once( ABSPATH .'/include/xpress_block_render.php' ); 103 xpress_unnecessary_block_cache_delete( );104 if (is_home()) xpress_block_cache_refresh( );103 xpress_unnecessary_block_cache_delete($xoops_config->module_name); 104 if (is_home()) xpress_block_cache_refresh($xoops_config->module_name); 105 105 exit(); // The return to wp-blog-header.php is stolen here 106 106 } -
trunk/xoops_version.php
r170 r172 31 31 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 32 32 $modversion['description'] = constant( '_MI_XPRESS_DESC'); 33 $modversion['version'] = "0.3 0";33 $modversion['version'] = "0.31"; 34 34 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 35 35 $modversion['author'] = "toemon (http://www.toemon.com)"; … … 40 40 41 41 // status 42 $modversion['codename'] = "r17 0";42 $modversion['codename'] = "r172"; 43 43 44 44 // onInstall, onUpdate, onUninstall
Note: See TracChangeset
for help on using the changeset viewer.