Skip to content
Snippets Groups Projects
Commit a1fe5148 authored by Björn Schießle's avatar Björn Schießle
Browse files

use always path as parameter to specify a file/folder

parent 513dc20d
Branches
No related tags found
No related merge requests found
...@@ -33,9 +33,9 @@ class Api { ...@@ -33,9 +33,9 @@ class Api {
public static function getAllShares($params) { public static function getAllShares($params) {
// if a file is specified, get the share for this file // if a file is specified, get the share for this file
if (isset($_GET['file'])) { if (isset($_GET['path'])) {
$params['itemSource'] = self::getFileId($_GET['file']); $params['itemSource'] = self::getFileId($_GET['path']);
$params['path'] = $_GET['file']; $params['path'] = $_GET['path'];
if (isset($_GET['subfiles']) && $_GET['subfiles'] === 'yes') { if (isset($_GET['subfiles']) && $_GET['subfiles'] === 'yes') {
return self::getSharesFromFolder($params); return self::getSharesFromFolder($params);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment