|
From: FlorinCB <ory...@us...> - 2008-10-25 22:38:04
|
Update of /cvsroot/mxbb/core/includes In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv10862 Modified Files: mx_functions_style.php Log Message: fix Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.102 retrieving revision 1.103 diff -C2 -d -r1.102 -r1.103 *** mx_functions_style.php 9 Oct 2008 02:41:36 -0000 1.102 --- mx_functions_style.php 25 Oct 2008 22:37:55 -0000 1.103 *************** *** 796,800 **** break; case 'phpbb2': ! $style = $mx_request_vars->post('user_style', MX_TYPE_INT, $this->data['user_style']); break; case 'phpbb3': --- 796,816 ---- break; case 'phpbb2': ! $user_style = $mx_request_vars->post('user_style', MX_TYPE_INT, $this->data['user_style']); ! //If user have other style in mxp then the one from phpBB not to have forum page and modules graphics will be messaed up ! //Anonymouse users should see all block graphic corect ! //Query MXP style_id corepondent to phpBB themes_id ! $sql = "SELECT m.themes_id ! FROM " . MX_THEMES_TABLE . " AS m, " . THEMES_TABLE . " AS t ! WHERE t.themes_id = " . (int) $user_style . " ! AND t.template_name = m.template_name"; ! ! if ($row = $db->sql_fetchrow($db->sql_query($sql))) ! { ! $style = $row['themes_id']; //User style ! } ! else ! { ! $style = $portal_config['default_style']; ! } break; case 'phpbb3': |