|
From: Jon O. <jon...@us...> - 2008-03-13 19:15:58
|
Update of /cvsroot/mxbb/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3630 Modified Files: db_install.php mx_news.php Log Message: enable_module bugfix Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/db_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_install.php 16 Feb 2008 21:47:02 -0000 1.3 --- db_install.php 13 Mar 2008 19:15:53 -0000 1.4 *************** *** 67,71 **** // General ! "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('enable_module', '0')", // settings_disable "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('module_name', 'News Manager')", // settings_dbname "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", --- 67,71 ---- // General ! "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('enable_module', '1')", "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('module_name', 'News Manager')", // settings_dbname "INSERT INTO " . $mx_table_prefix . "simplenews_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", Index: mx_news.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mx_news.php 16 Feb 2008 00:14:04 -0000 1.3 --- mx_news.php 13 Mar 2008 19:15:53 -0000 1.4 *************** *** 194,200 **** // =================================================== ! // if the database disabled give them a nice message // =================================================== ! if ( intval( $mx_news_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['mx_news_disable'] ); --- 194,200 ---- // =================================================== ! // if the module is disabled give them a nice message // =================================================== ! if (!($mx_news_config['enable_module'] || $mx_user->is_admin)) { mx_message_die( GENERAL_MESSAGE, $lang['mx_news_disable'] ); |