mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-20 03:33:39 +09:00
fix: match install page update checker setting with app.ini (#39317)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
co-authored by
wxiaoguang
parent
7efd24b28f
commit
31b4d79a84
@@ -106,6 +106,7 @@ func Install(ctx *context.Context) {
|
|||||||
}
|
}
|
||||||
form.RegisterConfirm = setting.Service.RegisterEmailConfirm
|
form.RegisterConfirm = setting.Service.RegisterEmailConfirm
|
||||||
form.MailNotify = setting.Service.EnableNotifyMail
|
form.MailNotify = setting.Service.EnableNotifyMail
|
||||||
|
form.EnableUpdateChecker = setting.CfgProvider.Section("cron.update_checker").Key("ENABLED").MustBool(true)
|
||||||
|
|
||||||
form.EnableOpenIDSignIn = setting.Service.EnableOpenIDSignIn
|
form.EnableOpenIDSignIn = setting.Service.EnableOpenIDSignIn
|
||||||
form.EnableOpenIDSignUp = setting.Service.EnableOpenIDSignUp
|
form.EnableOpenIDSignUp = setting.Service.EnableOpenIDSignUp
|
||||||
|
|||||||
@@ -150,7 +150,7 @@
|
|||||||
<div class="inline field">
|
<div class="inline field">
|
||||||
<div class="ui checkbox">
|
<div class="ui checkbox">
|
||||||
<label>{{ctx.Locale.Tr "install.enable_update_checker"}}</label>
|
<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>
|
</div>
|
||||||
<span class="help">{{ctx.Locale.Tr "install.enable_update_checker_helper"}}</span>
|
<span class="help">{{ctx.Locale.Tr "install.enable_update_checker_helper"}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user