|
From: OryNider <ory...@us...> - 2008-02-05 02:17:12
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17045 Modified Files: Tag: core28x mx_functions_phpbb.php mx_functions_style.php Log Message: This will fix a very bad error that shoul never apear in 2.8 Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.17.2.8 retrieving revision 1.17.2.9 diff -C2 -d -r1.17.2.8 -r1.17.2.9 *** mx_functions_style.php 3 Feb 2008 19:22:17 -0000 1.17.2.8 --- mx_functions_style.php 5 Feb 2008 02:17:08 -0000 1.17.2.9 *************** *** 740,744 **** if ( !$mx_template_config ) { ! mx_message_die(CRITICAL_ERROR, "Could not open mxBB $this->template_name template config file", '', __LINE__, __FILE__); } --- 740,744 ---- if ( !$mx_template_config ) { ! mx_message_die(CRITICAL_ERROR, "Could not open mxBB " . $module_root_path . $this->default_current_template_path . " style config file", '', __LINE__, __FILE__); } Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.32.2.10 retrieving revision 1.32.2.11 diff -C2 -d -r1.32.2.10 -r1.32.2.11 *** mx_functions_phpbb.php 3 Feb 2008 19:22:17 -0000 1.32.2.10 --- mx_functions_phpbb.php 5 Feb 2008 02:17:08 -0000 1.32.2.11 *************** *** 255,258 **** --- 255,263 ---- $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : $board_config['default_lang']; + if ( empty($default_lang) ) + { + // - populate $default_lang + $default_lang= 'english'; + } switch (PORTAL_BACKEND) { |