|
From: mhewitson <mhe...@us...> - 2007-06-28 18:04:26
|
Update of /cvsroot/mxbb/mx_blogs/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6730/mx_blogs/includes Modified Files: weblogs_common.php Log Message: - some fixes by OryNider - http://www.mx-system.com/index.php?page=2&t=10036&phpbb_script=viewtopic Index: weblogs_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/weblogs_common.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** weblogs_common.php 7 Jun 2007 22:01:33 -0000 1.1 --- weblogs_common.php 28 Jun 2007 18:04:21 -0000 1.2 *************** *** 51,54 **** --- 51,78 ---- define('WEBLOG_AUTH_OWNER', 3); + // ********************************************************************** + // Read theme definition and language in theme definition + // ********************************************************************** + + if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/" . $theme['template_name'] . ".cfg" ) ) + { + // ---------- + include($module_root_path . "templates/" . $theme['template_name'] . "/" . $theme['template_name'] . ".cfg"); + // ---------- + } + else + { + // ---------- + include($module_root_path . "templates/" . "subSilver/" . "subSilver.cfg"); + // ---------- + } + + + + + + + + // include the weblog language file $use_lang = ( !file_exists($mx_root_path . 'modules/mx_blogs/language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; |