|
From: Jon O. <jon...@us...> - 2005-10-23 18:48:28
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21549/includes Modified Files: mx_functions_admincp.php mx_functions_core.php Log Message: Updated all core blocks to use the new $mx_block->get_parameters() api, instead of old red_block_config() function Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** mx_functions_core.php 22 Oct 2005 23:07:00 -0000 1.14 --- mx_functions_core.php 23 Oct 2005 18:48:20 -0000 1.15 *************** *** 949,952 **** --- 949,954 ---- function get_parameters($key = MX_GET_ALL_PARS, $mode = MX_GET_PAR_VALUE) { + $block_config_temp = ''; + if ($key == MX_GET_ALL_PARS) { *************** *** 957,961 **** if ($mode == MX_GET_PAR_OPTIONS) { ! $block_config_temp = $this->block_parameters[$key]['parameter_option']; return $block_config_temp; } --- 959,963 ---- if ($mode == MX_GET_PAR_OPTIONS) { ! $block_config_temp = $this->block_parameters[$key]['parameter_opt']; return $block_config_temp; } *************** *** 1927,1930 **** --- 1929,1934 ---- // ------------------------------------------------------------------------------------------------------------- // For compatibility with old block calls + // NOTE: This usage is NOT preferred, and should only be used on rare occasions when the $mx_block object is unavailable + // This wrapper function calls the cache (if enabled) or db directly to get parameter data // *************** *** 1943,1946 **** --- 1947,1955 ---- } + // + // ------------------------------------------------------------------------------------------------------------- + // For compatibility with old/special scripts + // In reality only used in mx_install.php until we have an alternative ;) + // function update_session_cache( $id = '' ) { Index: mx_functions_admincp.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_admincp.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mx_functions_admincp.php 22 Oct 2005 10:51:02 -0000 1.11 --- mx_functions_admincp.php 23 Oct 2005 18:48:20 -0000 1.12 *************** *** 1297,1305 **** } - // - // Update cache - // - // update_session_cache( $id ); - if ( !MX_ADMIN_DEBUG ) { --- 1297,1300 ---- |