fatal_lang_error

Description

Stops execution and displays an error message according to the specified key.

Syntax

void fatal_lang_error (string $error[, bool $log[, array $sprintf]])



Parameter $error

Expected type: String
Description: The key for the $txt string to be used for the message



Parameter $log

Expected type: Boolean
Description: Whether or not to log the error. Defaults to true.



Parameter $sprintf

Expected type: Array
Description: The information to be inserted into the error message with sprintf() (see http://www.php.net/sprintf for more info)


Notes

  • Key - which error string should be used ($txt['error_key'])
  • Loads the Errors language file.
  • Applies the sprintf information if specified.
  • The information is logged if log is true or missing.
  • Uses the Errors template with the fatal_error sub template, or the proper error sub template in the Wirless template.
Advertisement: