mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix: adjust sharing controller exceptions case
Co-authored-by: F. E Noel Nfebe <fenn25.fn@gmail.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
parent
f250643e7a
commit
f4aa2644ee
1 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ class Manager implements IManager {
|
|||
} elseif ($share->getShareType() === IShare::TYPE_SCIENCEMESH) {
|
||||
} else {
|
||||
// We cannot handle other types yet
|
||||
throw new \InvalidArgumentException($this->l->t('unknown share type'));
|
||||
throw new \InvalidArgumentException($this->l->t('Unknown share type'));
|
||||
}
|
||||
|
||||
// Verify the initiator of the share is set
|
||||
|
|
@ -1095,7 +1095,7 @@ class Manager implements IManager {
|
|||
public function getSharesInFolder($userId, Folder $node, $reshares = false, $shallow = true) {
|
||||
$providers = $this->factory->getAllProviders();
|
||||
if (!$shallow) {
|
||||
throw new \Exception($this->l->t('non-shallow getSharesInFolder is no longer supported'));
|
||||
throw new \Exception('non-shallow getSharesInFolder is no longer supported');
|
||||
}
|
||||
|
||||
return array_reduce($providers, function ($shares, IShareProvider $provider) use ($userId, $node, $reshares) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue