fix: match install page update checker setting with app.ini (#39317) (#39327)

Co-authored-by: afishcalledwander <327599756+afishcalledwander@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot
2026-09-16 04:22:19 -07:00
committed by GitHub
parent e277be9e12
commit 2c7a442692
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -103,6 +103,7 @@ func Install(ctx *context.Context) {
}
form.RegisterConfirm = setting.Service.RegisterEmailConfirm
form.MailNotify = setting.Service.EnableNotifyMail
form.EnableUpdateChecker = setting.CfgProvider.Section("cron.update_checker").Key("ENABLED").MustBool(true)
form.EnableOpenIDSignIn = setting.Service.EnableOpenIDSignIn
form.EnableOpenIDSignUp = setting.Service.EnableOpenIDSignUp
+1 -1
View File
@@ -150,7 +150,7 @@
<div class="inline field">
<div class="ui checkbox">
<label>{{ctx.Locale.Tr "install.enable_update_checker"}}</label>
<input name="enable_update_checker" type="checkbox">
<input name="enable_update_checker" type="checkbox" {{if .enable_update_checker}}checked{{end}}>
</div>
<span class="help">{{ctx.Locale.Tr "install.enable_update_checker_helper"}}</span>
</div>