|
From: OryNider <ory...@us...> - 2008-03-08 15:19:57
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5829/kb/includes Modified Files: Tag: core28x kb_constants.php Log Message: upgrade for mx_mod 2.8.2 Index: kb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/kb_constants.php,v retrieving revision 1.7.2.1 retrieving revision 1.7.2.2 diff -C2 -d -r1.7.2.1 -r1.7.2.2 *** kb_constants.php 28 Jan 2008 03:09:27 -0000 1.7.2.1 --- kb_constants.php 8 Mar 2008 15:19:19 -0000 1.7.2.2 *************** *** 33,37 **** // This file defines specific constants for the module // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -503 ); define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); --- 33,37 ---- // This file defines specific constants for the module // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -501 ); define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); *************** *** 61,70 **** if ( !MXBB_MODULE || MXBB_27x ) { ! $kb_module_version = "Knowledge Base MOD v. 2.1.0b"; ! $kb_module_author = "Haplo/Jon"; $kb_module_orig_author = "wGEric"; } else { if (is_object($mx_page)) { --- 61,82 ---- if ( !MXBB_MODULE || MXBB_27x ) { ! $kb_module_version = "Knowledge Base MOD v. 0.9.0"; ! $kb_module_author = "Jon Ohlsson"; $kb_module_orig_author = "wGEric"; + + if (!defined( 'IN_ADMIN' )) + { + $mx_user->set_module_cfg_name('kb'); + $mx_user->set_module_lang_path($module_root_path . 'kb/'); + $mx_user->extend(); + } } 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)) { *************** *** 76,82 **** // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- ! $mx_user->extend(MX_LANG_MAIN , MX_IMAGES); ! $mx_page->add_copyright( 'mxBB Knowledge Base Module' ); } } --- 88,94 ---- // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- ! $mx_user->extend(); ! $mx_page->add_copyright('mxBB Knowledge Base Module'); } } |