|
From: OryNider <ory...@us...> - 2008-03-21 10:08:40
|
Update of /cvsroot/mxbb/mx_radiocast/radiocast_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29361/radiocast_mod Modified Files: Tag: core28x radiocast_constants.php Log Message: fix for 2.8.1 Index: radiocast_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast_mod/radiocast_constants.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** radiocast_constants.php 21 Mar 2008 08:57:11 -0000 1.1.2.1 --- radiocast_constants.php 21 Mar 2008 10:08:29 -0000 1.1.2.2 *************** *** 56,63 **** if (!$is_block) { ! if ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/' . "mx_radiocast.cfg" ) ) { // ---------- ! include_once($module_root_path . "templates/" . $theme['template_name'] . '/' . "mx_radiocast.cfg"); // ---------- } --- 56,76 ---- if (!$is_block) { ! ! $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx") === false) ! { ! if ((@include $module_root_path . "language/lang_english/lang_main.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx" . ' couldn\'t be opened.'); ! } ! $default_lang = 'english'; ! } ! ! ! if ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/' . "subSilver.cfg" ) ) { // ---------- ! include_once($module_root_path . "templates/" . $theme['template_name'] . '/' . "subSilver.cfg"); // ---------- } *************** *** 65,74 **** { // ---------- ! include_once($module_root_path . "templates/" . "subSilver/" . "mx_radiocast.cfg"); // ---------- } ! $img_lang = ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; while( list($key, $value) = @each($mx_images) ) --- 78,87 ---- { // ---------- ! include_once($module_root_path . "templates/" . "subSilver/" . "subSilver.cfg"); // ---------- } ! $img_lang = ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/images/lang_' . $default_lang) ) ? $default_lang : 'english'; while( list($key, $value) = @each($mx_images) ) |