Function fatal_lang_error
Shows a fatal error with a message stored in the language file.
This function stops execution and displays an error message by key. - uses the string with the error_message_key key. - logs the error in the forum's default language while displaying the error message in the user's language. - uses Errors language file and applies the $sprintf information if specified. - the information is logged if log is specified.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Errors.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Errors.php
string |
$error |
The error message |
string|false |
$log = 'general' |
The type of error, or false to not log it |
array |
$sprintf = array() |
An array of data to be sprintf()'d into the specified message |
integer |
$status = 403 |
= false The HTTP status code associated with this error |