|
From: OryNider <ory...@us...> - 2007-12-16 16:15:56
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23926 Modified Files: mx_functions_style.php Log Message: This will fix the anonymous default lang name for phpBB3 sessions ;) Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** mx_functions_style.php 14 Dec 2007 02:13:26 -0000 1.25 --- mx_functions_style.php 16 Dec 2007 16:15:49 -0000 1.26 *************** *** 556,560 **** else { ! $this->lang['default_lang'] = phpBB2::phpbb_ltrim(basename(phpBB2::phpbb_rtrim($board_config['default_lang'])), "'"); } --- 556,573 ---- else { ! switch (PORTAL_BACKEND) ! { ! case 'internal': ! ! case 'phpbb2': ! ! $this->lang['default_lang'] = phpBB2::phpbb_ltrim(basename(phpBB2::phpbb_rtrim($board_config['default_lang'])), "'"); ! break; ! ! case 'phpbb3': ! ! $this->lang['default_lang'] = phpBB2::phpbb_ltrim(basename(phpBB2::phpbb_rtrim($this->data['default_lang'])), "'"); ! break; ! } } *************** *** 575,579 **** // This is a long shot since it means serious errors in the setup to reach here, // but english is part of a new install so it's worth us trying ! $this->lang['default_lang'] = $this->get_old_lang('en'); } --- 588,593 ---- // This is a long shot since it means serious errors in the setup to reach here, // but english is part of a new install so it's worth us trying ! //$this->lang['default_lang'] = $this->get_old_lang('en'); //this will not work with sessions ! $this->lang['default_lang'] = 'en'; } |