From 54d5d869ad2c525dd276f28a8409658a106d9e3f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Sep 2013 14:56:06 +0200 Subject: Generalize request_type() to static_storage() Signed-off-by: Florian Pritz --- application/errors/error_general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/errors/error_general.php') 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), -- cgit v1.2.3-24-g4f1b