use always path as parameter to specify a file/folder
This commit is contained in:
parent
513dc20d4b
commit
a1fe5148b5
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue