diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-07-16 15:48:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 15:48:42 +0200 |
commit | 3dfebcb06e33bb976c739065c58fcdb90b0fe410 (patch) | |
tree | 7692fc644d99a018522632e9cae2659d4af5593d /apps | |
parent | 2f9fcc22aec918a9d07603b5e481d43bfb980ba0 (diff) | |
parent | bb730a1ee36780eb9828406d882e110a0b6dfaa0 (diff) | |
download | nextcloud-server-3dfebcb06e33bb976c739065c58fcdb90b0fe410.tar.gz nextcloud-server-3dfebcb06e33bb976c739065c58fcdb90b0fe410.zip |
Merge pull request #46551 from nextcloud/fix/shareapi-l10n
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 1ba4d441bc0..f2ace7b4d70 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -2037,10 +2037,10 @@ class ShareAPIController extends OCSController { if ($storage instanceof Wrapper) { $storage = $storage->getInstanceOfStorage(SharedStorage::class); if ($storage === null) { - throw new \RuntimeException($this->l->t('Should not happen, instanceOfStorage but getInstanceOfStorage return null')); + throw new \RuntimeException('Should not happen, instanceOfStorage but getInstanceOfStorage return null'); } } else { - throw new \RuntimeException($this->l->t('Should not happen, instanceOfStorage but not a wrapper')); + throw new \RuntimeException('Should not happen, instanceOfStorage but not a wrapper'); } /** @var \OCA\Files_Sharing\SharedStorage $storage */ $inheritedAttributes = $storage->getShare()->getAttributes(); |