Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--controller/filehandlingcontroller.php2
-rw-r--r--tests/controller/filehandlingcontrollertest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/controller/filehandlingcontroller.php b/controller/filehandlingcontroller.php
index efb2283..4d34759 100644
--- a/controller/filehandlingcontroller.php
+++ b/controller/filehandlingcontroller.php
@@ -96,7 +96,7 @@ class FileHandlingController extends Controller{
Http::STATUS_OK
);
} else {
- return new DataResponse(['message' => (string)$this->l->t('Can not read the file.')], Http::STATUS_BAD_REQUEST);
+ return new DataResponse(['message' => (string)$this->l->t('Cannot read the file.')], Http::STATUS_BAD_REQUEST);
}
} else {
return new DataResponse(['message' => (string)$this->l->t('Invalid file path supplied.')], Http::STATUS_BAD_REQUEST);
diff --git a/tests/controller/filehandlingcontrollertest.php b/tests/controller/filehandlingcontrollertest.php
index 901e904..729a52d 100644
--- a/tests/controller/filehandlingcontrollertest.php
+++ b/tests/controller/filehandlingcontrollertest.php
@@ -112,7 +112,7 @@ class FileHandlingControllerTest extends TestCase {
array('test.txt', '', 200, ''),
array('test.txt', '0', 200, ''),
array('', 'file content', 400, 'Invalid file path supplied.'),
- array('test.txt', false, 400, 'Can not read the file.'),
+ array('test.txt', false, 400, 'Cannot read the file.'),
);
}