Skip to content

Commit

Permalink
previous commit should check db is connected.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5238 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed May 3, 2008
1 parent 951f341 commit 0d13cfd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core.php
Expand Up @@ -193,4 +193,9 @@ function microtime_float() {
if ( !isset( $g_bypass_headers ) && !headers_sent() ) {
header( 'Content-type: text/html;charset=' . lang_get( 'charset' ) );
}

# every page displays project dropdown box, so cache project information very early
if ( db_is_connected() ) {
project_cache_all();
}
?>

0 comments on commit 0d13cfd

Please sign in to comment.