Merge pull request #46551 from nextcloud/fix/shareapi-l10n

This commit is contained in:
John Molakvoæ 2024-07-16 15:48:42 +02:00 committed by GitHub
commit 3dfebcb06e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();