|
From: Jon O. <jon...@us...> - 2005-10-15 22:12:25
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28601 Modified Files: common.php Log Message: Adding support for mod_rewrite Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core/common.php,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** common.php 14 Oct 2005 20:06:07 -0000 1.40 --- common.php 15 Oct 2005 22:12:17 -0000 1.41 *************** *** 224,230 **** define('PORTAL_VERSION', $portal_config['portal_version']); if ($portal_config['mod_rewrite']) { ! $mx_mod_rewrite = new mx_mod_rewrite(); } --- 224,241 ---- define('PORTAL_VERSION', $portal_config['portal_version']); + // + // instantiate the mx_mod_rewrite class (if activated) + // if ($portal_config['mod_rewrite']) { ! if ( file_exists( $mx_root_path . 'modules/mx_mod_rewrite/includes/rewrite_functions.php' ) ) ! { ! include_once( $mx_root_path . 'modules/mx_mod_rewrite/includes/rewrite_functions.php' ); ! ! if (class_exists('mx_mod_rewrite')) ! { ! $mx_mod_rewrite = new mx_mod_rewrite(); ! } ! } } |