Merge pull request #26882 from nextcloud/backport/26869/stable20

[stable20] l10n: Spelling unification
This commit is contained in:
Morris Jobke 2021-05-05 13:43:33 +02:00 committed by GitHub
commit 14b7313042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class MaintenancePlugin extends ServerPlugin {
*/ */
public function checkMaintenanceMode() { public function checkMaintenanceMode() {
if ($this->config->getSystemValueBool('maintenance')) { if ($this->config->getSystemValueBool('maintenance')) {
throw new ServiceUnavailable($this->l10n->t('System in maintenance mode.')); throw new ServiceUnavailable($this->l10n->t('System is in maintenance mode.'));
} }
if (Util::needUpgrade()) { if (Util::needUpgrade()) {
throw new ServiceUnavailable($this->l10n->t('Upgrade needed')); throw new ServiceUnavailable($this->l10n->t('Upgrade needed'));

View File

@ -55,7 +55,7 @@ class MaintenancePluginTest extends TestCase {
public function testMaintenanceMode() { public function testMaintenanceMode() {
$this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class);
$this->expectExceptionMessage('System in maintenance mode.'); $this->expectExceptionMessage('System is in maintenance mode.');
$this->config $this->config
->expects($this->exactly(1)) ->expects($this->exactly(1))