From afbe10100355d1008c6f7bbc0b91b7cb623dde15 Mon Sep 17 00:00:00 2001 From: beerfrick Date: Wed, 29 Jan 2003 15:56:42 +0000 Subject: [PATCH] moved the loading of lang_api.php to after database_api.php because functions in lang_api.php issue db calls. this fixed the bug where language strings were not being loaded. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1784 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- core.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core.php b/core.php index b10038b362..aead8dc666 100644 --- a/core.php +++ b/core.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: core.php,v 1.15 2003-01-29 14:50:51 beerfrick Exp $ + # $Id: core.php,v 1.16 2003-01-29 15:56:42 beerfrick Exp $ # -------------------------------------------------------- ########################################################################### @@ -67,7 +67,6 @@ # error functions should be loaded to allow database to print errors require_once( $t_core_path.'html_api.php' ); - require_once( $t_core_path.'lang_api.php' ); require_once( $t_core_path.'error_api.php' ); # initialize our timer @@ -81,6 +80,9 @@ # 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 ) { header( $t_header );