|
From: FlorinCB <ory...@us...> - 2008-07-09 17:05:43
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25476 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.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** mx_functions_style.php 9 Jul 2008 16:56:41 -0000 1.77 --- mx_functions_style.php 9 Jul 2008 17:05:39 -0000 1.78 *************** *** 589,595 **** if ( ($this->data['user_id'] != ANONYMOUS || $this->data['user_id'] != 1) && $this->data['user_lang'] !== $this->lang['default_lang'] ) { ! $sql = 'UPDATE ' . USERS_TABLE . " ! SET user_lang = '" . $this->lang['default_lang'] . "' ! WHERE user_lang = '" . $this->data['user_lang'] . "'"; if ( !($result = $db->sql_query($sql)) ) --- 589,608 ---- if ( ($this->data['user_id'] != ANONYMOUS || $this->data['user_id'] != 1) && $this->data['user_lang'] !== $this->lang['default_lang'] ) { ! switch (PORTAL_BACKEND) ! { ! case 'internal': ! $sql = 'UPDATE ' . USERS_TABLE . " ! SET user_lang = '" . $this->lang['default_lang'] . "' ! WHERE user_lang = '" . $this->data['user_lang'] . "'"; ! break; ! ! case 'phpbb2': ! case 'phpbb3': ! $sql = 'UPDATE ' . USERS_TABLE . " ! SET user_lang = '" . $this->get_phpbb_lang($this->lang['default_lang'], PORTAL_BACKEND) . "' ! WHERE user_lang = '" . $this->get_phpbb_lang($this->data['user_lang'], PORTAL_BACKEND) . "'"; ! break; ! } ! if ( !($result = $db->sql_query($sql)) ) |