diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-04 12:10:11 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-04 12:10:11 +0200 |
commit | a1fe5148b54e9ba130efd0d0d2bebabfa61a4457 (patch) | |
tree | 6b9737ee36a5b8507f316d571b394b56d238f5af /apps | |
parent | 513dc20d4b851381a9096807a930fd7b371a553b (diff) | |
download | nextcloud-server-a1fe5148b54e9ba130efd0d0d2bebabfa61a4457.tar.gz nextcloud-server-a1fe5148b54e9ba130efd0d0d2bebabfa61a4457.zip |
use always path as parameter to specify a file/folder
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/api.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/api.php b/apps/files_sharing/lib/api.php index c3048da9a41..8615d51160f 100644 --- a/apps/files_sharing/lib/api.php +++ b/apps/files_sharing/lib/api.php @@ -33,9 +33,9 @@ class Api { public static function getAllShares($params) { // if a file is specified, get the share for this file - if (isset($_GET['file'])) { - $params['itemSource'] = self::getFileId($_GET['file']); - $params['path'] = $_GET['file']; + if (isset($_GET['path'])) { + $params['itemSource'] = self::getFileId($_GET['path']); + $params['path'] = $_GET['path']; if (isset($_GET['subfiles']) && $_GET['subfiles'] === 'yes') { return self::getSharesFromFolder($params); } |