1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 17:05:48 +00:00

Fix template error on account page (#8562) (#8622)

This commit is contained in:
John Olheiser 2019-10-22 04:08:59 -05:00 committed by zeripath
parent 0032278a46
commit 2fbd5ae2e5

View File

@ -28,7 +28,6 @@ func Account(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("settings")
ctx.Data["PageIsSettingsAccount"] = true
ctx.Data["Email"] = ctx.User.Email
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
loadAccountData(ctx)
@ -230,4 +229,5 @@ func loadAccountData(ctx *context.Context) {
return
}
ctx.Data["Emails"] = emails
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
}