|
From: OryNider <ory...@us...> - 2008-03-23 02:34:01
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15368/album_mod/includes Modified Files: album_constants.php Log Message: some fixes and missing files Index: album_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/includes/album_constants.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** album_constants.php 15 Mar 2008 19:54:14 -0000 1.7 --- album_constants.php 23 Mar 2008 02:32:26 -0000 1.8 *************** *** 51,54 **** --- 51,56 ---- { $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); } } *************** *** 59,67 **** $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x } $mx_page->add_css_file('mx_smartor.css'); // Include style dependent *.css file, eg module_path/template_path/template/theme.css $mx_page->add_js_file($module_root_path . 'album_mod/fap_loader.js'); // Relative to module_root } - $mx_user->set_module_lang_path($module_root_path . 'album_mod/'); - $mx_user->extend(MX_LANG_ALL, MX_IMAGES); // Album Tables --- 61,74 ---- $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x } + + $mx_user->set_module_lang_path($module_root_path . 'album_mod/'); + + if (is_object($mx_page)) + { + $mx_user->extend(MX_LANG_ALL, MX_IMAGES); + } $mx_page->add_css_file('mx_smartor.css'); // Include style dependent *.css file, eg module_path/template_path/template/theme.css $mx_page->add_js_file($module_root_path . 'album_mod/fap_loader.js'); // Relative to module_root } // Album Tables |