summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-02-03 11:18:28 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-02-03 11:18:28 +0100
commitd9c895ce4f53b180fc11c3b5a172c4cf787b1279 (patch)
tree6757ed1622b79519279fcf50eda88118fa6ca5c8 /application/controllers/file.php
parent9ea78213f8e505b5fde7372106adc1947d1f7de2 (diff)
Remove unstable json api
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r--application/controllers/file.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index e35978a1e..63f6a71b5 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -9,13 +9,6 @@
class File extends MY_Controller {
- protected $json_enabled_functions = array(
- "upload_history",
- "do_upload",
- "do_delete",
- "do_multipaste",
- );
-
function __construct()
{
parent::__construct();
@@ -470,10 +463,6 @@ class File extends MY_Controller {
}
}
- if (static_storage("response_type") == "json") {
- return send_json_reply($this->data["urls"]);
- }
-
if (is_cli_client()) {
$redirect = false;
}
@@ -740,15 +729,6 @@ class File extends MY_Controller {
);
}
- if (static_storage("response_type") == "json") {
- return send_json_reply(array(
- "errors" => $errors,
- "deleted" => $deleted,
- "total_count" => $total_count,
- "deleted_count" => $deleted_count,
- ));
- }
-
$this->data["errors"] = $errors;
$this->data["deleted_count"] = $deleted_count;
$this->data["total_count"] = $total_count;