|
From: OryNider <ory...@us...> - 2008-03-14 12:36:01
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3680 Modified Files: album_constants.php Log Message: some @ since this constans should be defined in core too Index: album_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/includes/album_constants.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** album_constants.php 13 Mar 2008 08:47:23 -0000 1.4 --- album_constants.php 14 Mar 2008 12:35:51 -0000 1.5 *************** *** 32,37 **** } ! $mx_user->set_module_lang_path($module_root_path . 'album_mod/'); ! if (!MXBB_MODULE) { --- 32,42 ---- } ! // ------------------------------------------------------------------------- ! // 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 ! // ------------------------------------------------------------------------- if (!MXBB_MODULE) { *************** *** 39,42 **** --- 44,48 ---- { $mx_user->set_module_cfg_name('mx_smartor'); + $mx_user->set_module_lang_path($module_root_path . 'album_mod/'); $mx_user->extend(MX_LANG_ALL, MX_IMAGES); } *************** *** 48,61 **** $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x } - } ! // ------------------------------------------------------------------------- ! // 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); // Album Tables --- 54,70 ---- $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); ! } ! } // Album Tables *************** *** 67,74 **** !defined('ALBUM_SP_CONFIG_TABLE') ? define('ALBUM_SP_CONFIG_TABLE', $mx_table_prefix.'smartor_album_sp_config') : false; ! define('PAGE_ALBUM', -50); // for Session Handling ! define('PAGE_ALBUM_PERSONAL', -51); ! define('PAGE_ALBUM_PICTURE', -52); ! define('PAGE_ALBUM_SEARCH', -53); define('PERSONAL_GALLERY', 0); // pic_cat_id <- do NOT change this value --- 76,83 ---- !defined('ALBUM_SP_CONFIG_TABLE') ? define('ALBUM_SP_CONFIG_TABLE', $mx_table_prefix.'smartor_album_sp_config') : false; ! @define('PAGE_ALBUM', -50); // for Session Handling ! @define('PAGE_ALBUM_PERSONAL', -51); ! @define('PAGE_ALBUM_PICTURE', -52); ! @define('PAGE_ALBUM_SEARCH', -53); define('PERSONAL_GALLERY', 0); // pic_cat_id <- do NOT change this value |