aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-16 08:33:53 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-07-16 08:33:53 +0200
commitbb730a1ee36780eb9828406d882e110a0b6dfaa0 (patch)
tree5bf53f6fa1000be09908c17c793562df9e0ea673 /apps
parent70dd8d513bf73c8d56fea2aae4a02718a328f6e3 (diff)
downloadnextcloud-server-bb730a1ee36780eb9828406d882e110a0b6dfaa0.tar.gz
nextcloud-server-bb730a1ee36780eb9828406d882e110a0b6dfaa0.zip
fix(files_sharing): remove undesirable translations from ShareAPIController
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php4
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();