summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-10-07 12:53:02 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-01 17:29:04 +0100
commite7e1f088c11890e520619c545f7f28d0f9d6724a (patch)
treeea00d0997471b5180ade4845076c229994f0b4c1 /application
parent22ebb1a358dc319ab945ecb9987b6ba6aca441df (diff)
Remove API v1 compatability code
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/controllers/api/v2/file.php4
-rw-r--r--application/service/files.php3
2 files changed, 1 insertions, 6 deletions
diff --git a/application/controllers/api/v2/file.php b/application/controllers/api/v2/file.php
index 79da1c4b8..6eb0ae43b 100644
--- a/application/controllers/api/v2/file.php
+++ b/application/controllers/api/v2/file.php
@@ -61,10 +61,6 @@ class file extends \controllers\api\api_controller {
$this->muser->require_access("apikey");
$history = \service\files::history($this->muser->get_userid());
foreach ($history['multipaste_items'] as $key => $item) {
- # APIv1-cleanup: Remove this
- unset($history['multipaste_items'][$key]['user_id']);
- unset($history['multipaste_items'][$key]['multipaste_id']);
-
foreach ($item['items'] as $inner_key => $item) {
unset($history['multipaste_items'][$key]['items'][$inner_key]['sort_order']);
}
diff --git a/application/service/files.php b/application/service/files.php
index 746cd1162..b45ac8e6f 100644
--- a/application/service/files.php
+++ b/application/service/files.php
@@ -53,9 +53,8 @@ class files {
$multipaste_items_grouped = array();
$multipaste_items = array();
- # APIv1-cleanup: Remove multipaste_id and user_id
$query = $CI->db
- ->select('m.url_id, m.multipaste_id, m.user_id, m.date')
+ ->select('m.url_id, m.date')
->from("multipaste m")
->where("user_id", $user)
->get()->result_array();