From: <jl...@us...> - 2003-01-31 07:59:18
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1:/tmp/cvs-serv32543 Modified Files: core.php Log Message: Changed the include order of the core libraries, to (again) allow the database connection errors to be displayed. Index: core.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core.php,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- core.php 29 Jan 2003 15:56:42 -0000 1.16 +++ core.php 31 Jan 2003 07:43:54 -0000 1.17 @@ -65,6 +65,9 @@ # load utility functions used by everything else require_once( $t_core_path.'utility_api.php' ); + # Load internationalization functions (needed before database_api, in case database connection fails) + require_once( $t_core_path.'lang_api.php' ); + # error functions should be loaded to allow database to print errors require_once( $t_core_path.'html_api.php' ); require_once( $t_core_path.'error_api.php' ); @@ -79,9 +82,6 @@ # DATABASE WILL BE OPENED HERE!! THE DATABASE SHOULDN'T BE EXPLICITLY # OPENED ANYWHERE ELSE. require_once( $t_core_path.'database_api.php' ); - - # Load internationalization functions - require_once( $t_core_path.'lang_api.php' ); # SEND USER-DEFINED HEADERS foreach( config_get( 'custom_headers' ) as $t_header ) { |