|
From: FlorinCB <ory...@us...> - 2008-09-08 00:07:35
|
Update of /cvsroot/mxbb/core/install/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3437/includes Modified Files: functions_install.php Log Message: This fix is majore, and will allow installing mxp with any phpBB forum available :)))))))))))))))))) Index: functions_install.php =================================================================== RCS file: /cvsroot/mxbb/core/install/includes/functions_install.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** functions_install.php 7 Sep 2008 23:46:50 -0000 1.14 --- functions_install.php 8 Sep 2008 00:07:26 -0000 1.15 *************** *** 863,876 **** // Get the full phpBB URL by reading its config table. // ! function get_phpbb_url($table_prefix) { global $mx_root_path, $phpEx, $db; - $sql = 'SELECT * - FROM ' . $table_prefix . 'config'; - if( !($result = $db->sql_query($sql)) ) - { - return false; - } while ($row = $db->sql_fetchrow($result)) { --- 863,876 ---- // Get the full phpBB URL by reading its config table. // ! function get_phpbb_url($table_prefix, $portal_backend) { global $mx_root_path, $phpEx, $db; + + $were_sql = ($portal_backend === 'phpbb3') ? 'WHERE is_dynamic = 1' : ''; + + $sql = 'SELECT config_name, config_value + FROM ' . $table_prefix . 'config' . $were_sql; + $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { |