Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/xpress_block_recent_comments.php
r38 r41 20 20 $disp_count = empty( $options[1] ) ? '10' : $options[1] ; 21 21 $disp_length = empty( $options[2] ) ? '30' : $options[2] ; 22 $selected = array_slice($options, 5); // get allowed cats23 $this_template = empty( $options[ 6] ) ? 'db:'.$mydirname.'_block_comments.html' : trim( $options[4] );22 $selected = array_slice($options,3); // get allowed cats 23 $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_block_comments.html' : trim( $options[4] ); 24 24 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 25 25 … … 60 60 { 61 61 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 62 $disp_count = empty( $options[1] ) ? '10' : $options[1] ; 63 $disp_length = empty( $options[2] ) ? '30' : $options[2] ; 64 $selected = array_slice($options,3); // get allowed cats 65 62 66 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 67 68 $Identification = '-' . $disp_count . '-' . $disp_length ; 69 foreach ($selected as $item){ 70 $Identification .= '-' . $item ; 71 } 63 72 64 73 global $wpdb; … … 73 82 74 83 require_once $mydirpath.'/include/xoops_block_cache.php'; 75 xpress_block_cache_write($mydirname,'recent_comments_block' ,$block);84 xpress_block_cache_write($mydirname,'recent_comments_block'. $Identification,$block); 76 85 } else { 77 86 require_once $mydirpath.'/include/xoops_block_cache.php'; 78 $block = xpress_block_cache_read($mydirname,'recent_comments_block' );87 $block = xpress_block_cache_read($mydirname,'recent_comments_block'. $Identification); 79 88 } 80 89 return $block; -
trunk/wp-content/themes/xpress_default/blocks/recent_comments_block.php
r38 r41 7 7 $disp_count = empty( $options[1] ) ? '10' : $options[1] ; 8 8 $disp_length = empty( $options[2] ) ? '30' : $options[2] ; 9 $selected = array_slice($options, 5); // get allowed cats10 $this_template = empty( $options[ 6] ) ? 'db:'.$mydirname.'_block_comments.html' : trim( $options[4] );9 $selected = array_slice($options,3); // get allowed cats 10 $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_block_comments.html' : trim( $options[4] ); 11 11 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 12 12
Note: See TracChangeset
for help on using the changeset viewer.