aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrakekniven <2069590+rakekniven@users.noreply.github.com>2021-04-28 10:11:32 +0200
committerGitHub <noreply@github.com>2021-04-28 10:11:32 +0200
commit48f05158e5ad61e9d68f00edf765b0f70a6db074 (patch)
treeff142ead421a2c07df6dee764aa167ec0bc6fbeb /apps
parent6a5d89c1ac2e24301b3c7cdc46b7302e26c4d09f (diff)
parentc79aba9865a788717e3fe173b24f597a66971da2 (diff)
downloadnextcloud-server-48f05158e5ad61e9d68f00edf765b0f70a6db074.tar.gz
nextcloud-server-48f05158e5ad61e9d68f00edf765b0f70a6db074.zip
Merge pull request #26784 from nextcloud/Valdnet-patch-8
l10n: Change to a capital letter
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php2
-rw-r--r--apps/files_sharing/tests/Controller/ShareAPIControllerTest.php2
2 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 f3b0467fa14..e8d48c42cd0 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -477,7 +477,7 @@ class ShareAPIController extends OCSController {
}
if ($permissions < 0 || $permissions > Constants::PERMISSION_ALL) {
- throw new OCSNotFoundException($this->l->t('invalid permissions'));
+ throw new OCSNotFoundException($this->l->t('Invalid permissions'));
}
// Shares always require read permissions
diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
index 4e46aa074ba..009dfe86a48 100644
--- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
@@ -1602,7 +1602,7 @@ class ShareAPIControllerTest extends TestCase {
public function testCreateShareInvalidPermissions() {
$this->expectException(\OCP\AppFramework\OCS\OCSNotFoundException::class);
- $this->expectExceptionMessage('invalid permissions');
+ $this->expectExceptionMessage('Invalid permissions');
$share = $this->newShare();
$this->shareManager->method('newShare')->willReturn($share);