From a1fe5148b54e9ba130efd0d0d2bebabfa61a4457 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 4 Oct 2013 12:10:11 +0200 Subject: [PATCH] use always path as parameter to specify a file/folder --- apps/files_sharing/lib/api.php | 6 +++--- 1 file 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); } -- 2.39.5