syntax fixes

This commit is contained in:
ston1th 2021-11-05 21:55:18 +01:00
commit 1ce33aa89a
13 changed files with 45 additions and 43 deletions

View file

@ -465,10 +465,8 @@ func pageHandler(ctx *Context) {
if ctx.T == nil {
ctx.Template("pageViewHandler")
}
} else {
if ctx.T == nil {
ctx.Template("pageHandler")
}
} else if ctx.T == nil {
ctx.Template("pageHandler")
}
page, err := ctx.Srv.DB.GetPage(section, title, user)
if err != nil {
@ -866,8 +864,7 @@ func statsHandler(ctx *Context) {
Title: "Stats",
BodyTitle: "Stats",
}
switch ctx.Method() {
case "GET":
if ctx.Method() == "GET" {
ctx.Data.Data = getStats(ctx.Srv.DB.Index)
ctx.Exec()
}