summaryrefslogtreecommitdiffstats
path: root/application/errors/error_general.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/errors/error_general.php')
-rwxr-xr-xapplication/errors/error_general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/errors/error_general.php b/application/errors/error_general.php
index fc3d3f607..6c67fa33f 100755
--- a/application/errors/error_general.php
+++ b/application/errors/error_general.php
@@ -9,7 +9,7 @@ if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"])) {
$CI->load->helper("filebin");
$CI->load->helper("url");
- if (request_type() == "json") {
+ if (static_storage("response_type") == "json") {
$array = array(
"status" => "error",
"message" => strip_tags($message),