Skip to content

Commit

Permalink
moved the loading of lang_api.php to after database_api.php
Browse files Browse the repository at this point in the history
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
  • Loading branch information
beerfrick committed Jan 29, 2003
1 parent a617b5e commit afbe101
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core.php
Expand Up @@ -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 $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -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
Expand All @@ -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 );
Expand Down

0 comments on commit afbe101

Please sign in to comment.