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/controllers/file.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'application/controllers/file.php') diff --git a/application/controllers/file.php b/application/controllers/file.php index 6e660b306..6a97c645f 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -286,7 +286,7 @@ class File extends MY_Controller { } } - if (request_type() == "json") { + if (static_storage("response_type") == "json") { return send_json_reply($this->data["urls"]); } @@ -466,7 +466,7 @@ class File extends MY_Controller { ORDER BY date $order ", array($user))->result_array(); - if (request_type() == "json") { + if (static_storage("response_type") == "json") { return send_json_reply($query); } @@ -539,7 +539,7 @@ class File extends MY_Controller { } } - if (request_type() == "json") { + if (static_storage("response_type") == "json") { return send_json_reply(array( "errors" => $errors, "deleted" => $deleted, -- cgit v1.2.3-24-g4f1b