Browse Source

Merge pull request #1445 from Underdog-01/patch-2

Update Errors.php
Michael Eshom 11 years ago
parent
commit
1521fce0ba
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Sources/Errors.php

+ 3 - 2
Sources/Errors.php

@@ -374,8 +374,9 @@ function display_maintenance_message()
 function display_db_error()
 {
 	global $mbname, $modSettings, $maintenance;
-	global $db_connection, $webmaster_email, $db_last_error, $db_error_send, $smcFunc;
+	global $db_connection, $webmaster_email, $db_last_error, $db_error_send, $smcFunc, $sourcedir;
 
+	require_once($sourcedir . '/Logging.php');
 	set_fatal_error_headers();
 
 	// For our purposes, we're gonna want this on if at all possible.
@@ -457,4 +458,4 @@ function set_fatal_error_headers()
 	header('Retry-After: 3600');
 }
 
-?>
+?>