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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-06-19 17:39:51 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-04 09:28:33 +0300
commit6a0c54d5bfd70baeed2438ac05278a9b4cb73d88 (patch)
treecd061e0570ff628076c7841e11e2e91f70576ad1 /settings
parent0cf0bcba616811248e051a469360055845daed18 (diff)
Add warning to setup checks if the default mailer is still php
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings')
-rw-r--r--settings/Controller/CheckSetupController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php
index ecbb9839c75..a301ecb1f66 100644
--- a/settings/Controller/CheckSetupController.php
+++ b/settings/Controller/CheckSetupController.php
@@ -523,6 +523,10 @@ Raw output
return [];
}
+ protected function isPhpMailerUsed(): bool {
+ return $this->config->getSystemValue('mail_smtpmode', 'php') === 'php';
+ }
+
/**
* @return DataResponse
*/
@@ -557,6 +561,8 @@ Raw output
'missingIndexes' => $this->hasMissingIndexes(),
'isSqliteUsed' => $this->isSqliteUsed(),
'databaseConversionDocumentation' => $this->urlGenerator->linkToDocs('admin-db-conversion'),
+ 'isPhpMailerUsed' => $this->isPhpMailerUsed(),
+ 'mailSettingsDocumentation' => $this->urlGenerator->getAbsoluteURL('index.php/settings/admin')
]
);
}