diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-03 21:49:04 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-04 09:03:45 +0200 |
commit | f4aa2644eeed29971d1eecb3d22bb0127e428141 (patch) | |
tree | 14a4ed28025c0d31642737400331edd61bef50e4 /lib | |
parent | f250643e7ac1d5027e7cd471c821a8de069bb9f2 (diff) | |
download | nextcloud-server-f4aa2644eeed29971d1eecb3d22bb0127e428141.tar.gz nextcloud-server-f4aa2644eeed29971d1eecb3d22bb0127e428141.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index a89c19920fa..391b77171a9 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -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) { |