mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix template error on account page (#8562)
This commit is contained in:
		| @@ -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() | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user