diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-02 14:23:13 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-02 14:23:13 -0400 |
commit | dd56416a39b4ddf1ee550b9e5912bcbe3dc88ad8 (patch) | |
tree | e4f3cc60ab4f25fc4d2d6fb8aee552d1d160b873 | |
parent | 3e8a34f9062015e79d4d1a29e8187586feb4cd68 (diff) | |
download | nextcloud-server-dd56416a39b4ddf1ee550b9e5912bcbe3dc88ad8.tar.gz nextcloud-server-dd56416a39b4ddf1ee550b9e5912bcbe3dc88ad8.zip |
Remove the method getItemsSharedStatuses, it is easy enough to just pass the format instead
-rw-r--r-- | core/ajax/share.php | 2 | ||||
-rw-r--r-- | lib/public/share.php | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index c9bee6a7ed8..b1b619e6220 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -44,7 +44,7 @@ if (isset($_POST['action'])) { } else if (isset($_GET['fetch'])) { switch ($_GET['fetch']) { case 'getItemsSharedStatuses': - $return = OCP\Share::getItemsSharedStatuses($_GET['itemType']); + $return = OCP\Share::getItemsShared($_GET['itemType'], OCP\Share::FORMAT_STATUSES); ($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error(); break; case 'getItemShared': diff --git a/lib/public/share.php b/lib/public/share.php index 59db1048533..f493cc17dad 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -107,16 +107,6 @@ class Share { } /** - * @brief Get the status of each shared item of item type owned by the current user - * @param string Item type - * @param int Number of items to return (optional) Returns all by default - * @return array, item as key with a value of true if item has a private link or false - */ - public static function getItemsSharedStatuses($itemType, $limit = -1) { - return self::getItems($itemType, null, null, null, \OC_User::getUser(), self::FORMAT_STATUSES, $limit); - } - - /** * @brief Share an item with a user, group, or via private link * @param string Item type * @param string Item |