|
From: Jon O. <jon...@us...> - 2008-03-13 19:13:50
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32489 Modified Files: kb.php kb_app.php kb_article_reader.php kb_lists.php kb_mini.php Log Message: enable_module bugfix Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** kb.php 18 Feb 2008 21:02:57 -0000 1.46 --- kb.php 13 Mar 2008 19:13:36 -0000 1.47 *************** *** 234,240 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); --- 234,240 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($kb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); Index: kb_mini.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_mini.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** kb_mini.php 13 Aug 2006 19:43:07 -0000 1.2 --- kb_mini.php 13 Mar 2008 19:13:38 -0000 1.3 *************** *** 55,61 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); --- 55,61 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($kb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); Index: kb_app.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_app.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** kb_app.php 18 Feb 2008 21:02:57 -0000 1.4 --- kb_app.php 13 Mar 2008 19:13:37 -0000 1.5 *************** *** 151,157 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); --- 151,157 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($kb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); Index: kb_article_reader.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_article_reader.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** kb_article_reader.php 18 Feb 2008 21:02:57 -0000 1.24 --- kb_article_reader.php 13 Mar 2008 19:13:38 -0000 1.25 *************** *** 149,155 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); --- 149,155 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($kb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); Index: kb_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_lists.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** kb_lists.php 13 Aug 2006 19:43:07 -0000 1.4 --- kb_lists.php 13 Mar 2008 19:13:38 -0000 1.5 *************** *** 53,59 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); --- 53,59 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($kb_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); |