Fixed language
This commit is contained in:
parent
cfb43c0e86
commit
c062433e9b
1 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,10 @@ $errors = array();
|
||||||
set_error_handler("errorHandler");
|
set_error_handler("errorHandler");
|
||||||
register_shutdown_function("printErrors");
|
register_shutdown_function("printErrors");
|
||||||
|
|
||||||
|
if(isset($language["error_unknown"])) $language["error_unknown"] = "Unknown Error Type";
|
||||||
|
if(isset($language["error"])) $language["error"] = "Error";
|
||||||
|
if(isset($language["warning"])) $language["warning"] = "Warning";
|
||||||
|
|
||||||
// error handler function
|
// error handler function
|
||||||
function errorHandler($errno, $errstr, $errfile, $errline){
|
function errorHandler($errno, $errstr, $errfile, $errline){
|
||||||
GLOBAL $language,$errors;
|
GLOBAL $language,$errors;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue