1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-03 07:36:23 -07:00

Fix compilation issue with ban page template rendering.

This commit is contained in:
Darren VanBuren 2017-11-13 22:54:58 -08:00
parent 3dcc9db6b6
commit 600e81e0d8

View file

@ -1075,7 +1075,7 @@ func makePost(w http.ResponseWriter, r *http.Request, data interface{}) {
var banpage_buffer bytes.Buffer
var banpage_html string
banpage_buffer.Write([]byte(""))
err = renderTemplate(banpage_tmpl, "bans", isbanned)
err = renderTemplate(banpage_tmpl, "banpage", &banpage_buffer, &Wrapper{IName: "bans", Data: isbanned})
if err != nil {
fmt.Fprintf(writer, banpage_html+err.Error()+"\n</body>\n</html>")
println(1, err.Error())