]> source.dussan.org Git - nextcloud-server.git/commitdiff
use always path as parameter to specify a file/folder
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Oct 2013 10:10:11 +0000 (12:10 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Oct 2013 10:10:11 +0000 (12:10 +0200)
apps/files_sharing/lib/api.php

index c3048da9a41b4077341df3c059e482fa369d43be..8615d51160f6963b48042ffdd8bf8b1ced4f676e 100644 (file)
@@ -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);
                        }