|
From: FlorinCB <ory...@us...> - 2008-10-18 11:46:44
|
Update of /cvsroot/mxbb/core/includes In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv8974 Modified Files: mx_functions.php Log Message: function update_portal_backend() fixed to keep curent utf status with internal backend if user plan to install phpbb3 Index: mx_functions.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions.php,v retrieving revision 1.96 retrieving revision 1.97 diff -C2 -d -r1.96 -r1.97 *** mx_functions.php 4 Oct 2008 18:01:29 -0000 1.96 --- mx_functions.php 18 Oct 2008 11:46:32 -0000 1.97 *************** *** 2463,2467 **** */ ! $new_backend = ($new_backend) ? $new_backend : 'internal'; $process_msgs[] = 'Writing config ...<br />'; --- 2463,2481 ---- */ ! $new_backend = ($new_backend) ? $new_backend : 'internal'; ! ! switch ($new_backend) ! { ! case 'internal': ! case 'phpbb2': ! ! $utf_status = defined('UTF_STATUS') ? UTF_STATUS : $new_backend; ! break; ! ! case 'phpbb3': ! ! $utf_status = $new_backend; ! break; ! } $process_msgs[] = 'Writing config ...<br />'; *************** *** 2476,2480 **** $config_data .= '$'."dbpasswd = '$dbpasswd';\n\n"; $config_data .= '$'."mx_table_prefix = '$mx_table_prefix';\n\n"; ! $config_data .= "define('UTF_STATUS', '$new_backend');\n\n"; $config_data .= "define('MX_INSTALLED', true);\n\n"; $config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused! --- 2490,2494 ---- $config_data .= '$'."dbpasswd = '$dbpasswd';\n\n"; $config_data .= '$'."mx_table_prefix = '$mx_table_prefix';\n\n"; ! $config_data .= "define('UTF_STATUS', '$utf_status');\n\n"; $config_data .= "define('MX_INSTALLED', true);\n\n"; $config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused! |