summaryrefslogtreecommitdiffstats
path: root/application/helpers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-07-18 12:40:02 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-07-18 12:40:02 +0200
commite64dedc8463a705b50f261e123491a9f7353dadb (patch)
tree6f65e62b547edd400deda441682d91e4a5202ba6 /application/helpers
parent3f6573b15c7395a76b9ee5e810331975baf080cf (diff)
Add json support to upload_history
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers')
-rw-r--r--application/helpers/filebin_helper.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 394d55ba5..88bb290c4 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -323,4 +323,11 @@ function auth_driver_function_implemented($function)
return $result[$function];
}
+function send_json_reply($array)
+{
+ $CI =& get_instance();
+ $CI->output->set_content_type('application/json');
+ $CI->output->set_output(json_encode($array));
+}
+
# vim: set noet: