Browse Source

Update Errors.php

! missing required file of /Sources/Logging.php to use logLastDatabaseError() function

Signed-off-by: -Underdog- [email protected]
Underdog 10 years ago
parent
commit
6397be6a3f
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');
 }
 
-?>
+?>