|
From: Jon O. <jon...@us...> - 2008-02-15 23:04:04
|
Update of /cvsroot/mxbb/mx_kb/kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12430 Modified Files: kb_common.php Log Message: Updated, sync with phpBB2 standalone usage Index: kb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/kb_common.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** kb_common.php 13 Aug 2006 19:43:07 -0000 1.9 --- kb_common.php 15 Feb 2008 23:03:59 -0000 1.10 *************** *** 82,85 **** --- 82,110 ---- include_once( $module_root_path . 'kb/includes/functions_kb.' . $phpEx ); + // ********************************************************************** + // If phpBB mod read language definition + // ********************************************************************** + + if ( !MXBB_MODULE ) + { + if ( !file_exists( $module_root_path . 'pafiledb/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) + { + include( $module_root_path . 'pafiledb/language/lang_english/lang_main.' . $phpEx ); + } + else + { + include( $module_root_path . 'pafiledb/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); + } + } + + // + // We need XS templates, also when ran as a phpBB2 MOD + // + if ( !MXBB_MODULE ) + { + include_once( $module_root_path . 'pafiledb/includes/template.' . $phpEx ); // Include XS template + $template = new Template($module_root_path . 'templates/'. $theme['template_name']); + } + // =================================================== // Load classes |