|
From: Andrew <men...@us...> - 2005-12-16 03:28:26
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28297 Modified Files: kb.php Log Message: Cosmetic fixes; one logical. Used $lang for the message when standalone mode is not supported. We also need to stay up with standards for lang entries... ie quotes. Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** kb.php 8 Dec 2005 15:04:26 -0000 1.26 --- kb.php 16 Dec 2005 03:28:10 -0000 1.27 *************** *** 19,23 **** */ ! if ( file_exists( './viewtopic.php' ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); --- 19,23 ---- */ ! if ( file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); *************** *** 54,58 **** // End session management ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); if ( !isset( $HTTP_GET_VARS['print'] ) ) --- 54,58 ---- // End session management ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); if ( !isset( $HTTP_GET_VARS['print'] ) ) *************** *** 92,100 **** if ( MXBB_27x ) { ! mx_message_die(GENERAL_MESSAGE, 'This module does not support standalone usage. In the adminCP, add the kb block to a portal page.'); } else { ! die('no article, no redirect'); } } --- 92,100 ---- if ( MXBB_27x ) { ! mx_message_die( GENERAL_MESSAGE, $lang['Standalone_Not_Supported'] ); } else { ! die('No article or redirect'); } } *************** *** 103,107 **** else { ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); // --- 103,107 ---- else { ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); // |