use always path as parameter to specify a file/folder

remotes/origin/stable6
Bjoern Schiessle 12 years ago
parent 513dc20d4b
commit a1fe5148b5
  1. 6
      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);
}

Loading…
Cancel
Save