|
From: OryNider <ory...@us...> - 2008-03-08 20:09:09
|
Update of /cvsroot/mxbb/mx_music/music_box/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6081/music_box/includes Modified Files: music_constants.php Log Message: Index: music_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/includes/music_constants.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** music_constants.php 29 Jan 2008 07:51:05 -0000 1.2 --- music_constants.php 8 Mar 2008 20:08:32 -0000 1.3 *************** *** 61,63 **** --- 61,95 ---- !defined('MUSIC_RATE_TABLE') ? define('MUSIC_RATE_TABLE', $mx_table_prefix.'music_rate') : false; + // ------------------------------------------------------------------------- + // Footer Copyrights + // ------------------------------------------------------------------------- + if ( !MXBB_MODULE || MXBB_27x ) + { + if (!defined( 'IN_ADMIN' )) + { + $mx_user->set_module_cfg_name('music'); + $mx_user->set_module_lang_path($module_root_path . 'music_box/'); + $mx_user->extend(MX_LANG_ALL, MX_IMAGES); + } + } + else + { + if (!$_GET['print']) // Do not "fix" with reuest wrapper!! + { + $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x + } + + if (is_object($mx_page)) + { + // ------------------------------------------------------------------------- + // Extend User Style with module lang and images + // Usage: $mx_user->extend(LANG, IMAGES) + // Switches: + // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE + // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE + // ------------------------------------------------------------------------- + $mx_user->extend(MX_LANG_ALL, MX_IMAGES); + } + } + ?> \ No newline at end of file |