diff options
Diffstat (limited to 'include/functions2.php')
-rw-r--r-- | include/functions2.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/functions2.php b/include/functions2.php index c0ed7a823..a73f9a7a7 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -2452,4 +2452,14 @@ return false; } + + function error_json($code) { + require_once "errors.php"; + + @$message = $ERRORS[$code]; + + return json_encode(array("error" => + array("code" => $code, "message" => $message))); + + } ?> |