|
From: Jon O. <jon...@us...> - 2005-10-23 18:50:38
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22078/modules/mx_kb Modified Files: kb.php kb_article_reader.php kb_search.php Log Message: Updated all blocks to use the new $mx_block->get_parameters() api, instead of old red_block_config() function Index: kb_search.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_search.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** kb_search.php 1 Oct 2005 14:13:46 -0000 1.14 --- kb_search.php 23 Oct 2005 18:50:22 -0000 1.15 *************** *** 73,79 **** else { ! // Read block Configuration ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; $is_block = true; global $images; --- 73,80 ---- else { ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; $is_block = true; global $images; Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** kb.php 1 Oct 2005 14:13:46 -0000 1.22 --- kb.php 23 Oct 2005 18:50:22 -0000 1.23 *************** *** 118,126 **** define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = !empty( $block_config[$block_id]['block_title'] ) ? $block_config[$block_id]['block_title'] : $lang['KB_title']; ! $desc = $block_config[$block_id]['block_desc']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); --- 118,126 ---- define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); ! // ! // Read Block Settings ! // ! $title = !empty( $mx_block->block_info['block_title'] ) ? $mx_block->block_info['block_title'] : $lang['KB_title']; ! $desc = $mx_block->block_info['block_desc']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); *************** *** 130,134 **** // Extract 'what posts to view info', the cool Array ;) ! $kb_type_select_data = ( !empty( $block_config[$block_id][kb_type_select]['parameter_value'] ) ) ? unserialize($block_config[$block_id][kb_type_select]['parameter_value']) : array(); include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); --- 130,135 ---- // Extract 'what posts to view info', the cool Array ;) ! $kb_type_select_var = $mx_block->get_parameters( 'kb_type_select' ); ! $kb_type_select_data = ( !empty( $kb_type_select_var ) ) ? unserialize( $kb_type_select_var ) : array(); include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); Index: kb_article_reader.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_article_reader.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** kb_article_reader.php 1 Oct 2005 14:13:46 -0000 1.8 --- kb_article_reader.php 23 Oct 2005 18:50:22 -0000 1.9 *************** *** 87,97 **** else { - // Read block Configuration - define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; ! $desc = $block_config[$block_id]['block_desc']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); --- 87,97 ---- else { define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; ! $desc = $mx_block->block_info['block_desc']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); *************** *** 102,108 **** // Extract 'what posts to view info', the cool Array ;) ! $kb_type_select_data = ( !empty( $block_config[$block_id][kb_type_select]['parameter_value'] ) ) ? unserialize($block_config[$block_id][kb_type_select]['parameter_value']) : array(); ! $default_article_id = $block_config[$block_id][default_article_id]['parameter_value']; include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); --- 102,109 ---- // Extract 'what posts to view info', the cool Array ;) ! $kb_type_select_tmp = $mx_block->get_parameters( 'kb_type_select' ); ! $kb_type_select_data = ( !empty( $kb_type_select_tmp ) ) ? unserialize( $kb_type_select_tmp ) : array(); ! $default_article_id = $mx_block->get_parameters( 'default_article_id' ); include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); |