mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
fix(settings): Fix setup check when mail_smptmode is set to "null"
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
378b0f9765
commit
98b8912d74
1 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,9 @@ class EmailTestSuccessful implements ISetupCheck {
|
|||
}
|
||||
|
||||
public function run(): SetupResult {
|
||||
if ($this->wasEmailTestSuccessful()) {
|
||||
if ($this->config->getSystemValueString('mail_smtpmode', 'smtp') === 'null') {
|
||||
return SetupResult::success($this->l10n->t('Mail delivery is disabled by instance config "%s".', ['mail_smtpmode']));
|
||||
} elseif ($this->wasEmailTestSuccessful()) {
|
||||
return SetupResult::success($this->l10n->t('Email test was successfully sent'));
|
||||
} else {
|
||||
// If setup check could link to settings pages, this one should link to OC.generateUrl('/settings/admin')
|
||||
|
|
|
|||
Loading…
Reference in a new issue