aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-06-17 00:32:57 +0100
committerGitHub <noreply@github.com>2021-06-16 19:32:57 -0400
commit1ec9e906dc905c3d0aacb14e6c8077032dc6a484 (patch)
tree82bd1edbb80d4223a7d417243627e595c4f1fc32 /modules/setting
parent0e081ff0ce61227d5f34f1d7f8213d9f407f1f3d (diff)
downloadgitea-1ec9e906dc905c3d0aacb14e6c8077032dc6a484.tar.gz
gitea-1ec9e906dc905c3d0aacb14e6c8077032dc6a484.zip
Ensure settings for Service and Mailer are read on the install page (#15943)
* Ensure settings for Service and Mailer are read on the install page NewContext does not set the mailer or service settings so add a new function that will run this. Fix #15894 Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 6e05df1ad9..d26c054cd7 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1190,3 +1190,9 @@ func NewServices() {
newProject()
newMimeTypeMap()
}
+
+// NewServicesForInstall initializes the services for install
+func NewServicesForInstall() {
+ newService()
+ newMailService()
+}