diff options
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -54,9 +54,14 @@ func CreateNewEntry(email, password string) error { func ExecTemplate(template string, w http.ResponseWriter, r *http.Request, flash Flash) error { l := GetLanguage(r) flash.Language = l + + if flash.Language == "" { + flash.Language = "en" + } if l != "" { l = "_" + l } + template = template + l + ".html" index := mainTempl.Lookup(template) |
