use always path as parameter to specify a file/folder

This commit is contained in:
Bjoern Schiessle 2013-10-04 12:10:11 +02:00
parent 513dc20d4b
commit a1fe5148b5
1 changed files with 3 additions and 3 deletions

View 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);
}