* [FIX] Fixed wrong behavior when setting mail parameters

* [MOD] Improved email message templates

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-11-19 18:44:18 +01:00
parent afdfa80d8f
commit 13e12baaf0
13 changed files with 98 additions and 41 deletions

View File

@@ -79,10 +79,18 @@ final class ConfigImportController extends SimpleControllerBase
);
if ($counter > 0) {
return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('Import finished'), [__u('Please check out the event log for more details')]);
return $this->returnJsonResponse(
JsonResponse::JSON_SUCCESS,
__u('Import finished'),
[__u('Please check out the event log for more details')]
);
}
return $this->returnJsonResponse(JsonResponse::JSON_WARNING, __u('No accounts were imported'), [__u('Please check out the event log for more details')]);
return $this->returnJsonResponse(
JsonResponse::JSON_WARNING,
__u('No accounts were imported'),
[__u('Please check out the event log for more details')]
);
} catch (\Exception $e) {
processException($e);