mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Improve Context to be more idiomatic
This commit is contained in:
parent
02ff7b4bcf
commit
1bc43ec2bc
17 changed files with 107 additions and 106 deletions
|
@ -38,7 +38,7 @@ func (h *Handler) Use(f HandlerFunc) http.Handler {
|
|||
response := NewResponse(w, r, h.template)
|
||||
|
||||
if ctx.IsAuthenticated() {
|
||||
h.template.SetLanguage(ctx.GetUserLanguage())
|
||||
h.template.SetLanguage(ctx.UserLanguage())
|
||||
} else {
|
||||
h.template.SetLanguage("en_US")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue