|
From: Jon O. <jon...@us...> - 2005-09-08 21:16:31
|
Update of /cvsroot/mxbb/core/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14010/modules/mx_textblocks/admin Modified Files: mx_module_defs.php Log Message: fixing up installer and search and site log Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_textblocks/admin/mx_module_defs.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mx_module_defs.php 6 Sep 2005 18:51:57 -0000 1.3 --- mx_module_defs.php 8 Sep 2005 21:16:19 -0000 1.4 *************** *** 65,69 **** function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $html_entities_match, $html_entities_replace; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_name']]; --- 65,69 ---- function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $html_entities_match, $html_entities_replace, $mx_cache; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_name']]; *************** *** 109,112 **** --- 109,122 ---- $parameter_opt = $bbcode_uid; + // + // Add search words + // + mx_remove_search_post($block_id); + $block_config_temp = $mx_cache->read( $block_id, MX_CACHE_BLOCK_TYPE ); + $block_info_temp = $block_config_temp[$block_id]['block_info']; + $block_title = $block_info_temp['block_title']; + mx_add_search_words('single', $block_id, $parameter_value, $block_title); + + return array('parameter_value' => $parameter_value, 'parameter_opt' => $parameter_opt); } |