diff --git a/routes.go b/routes.go index 02e38ed..da65011 100644 --- a/routes.go +++ b/routes.go @@ -687,6 +687,7 @@ func Settings(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { Render(w, "index.html", state) return } + state.GetSite() switch r.Method { case "POST": for _, name := range []string{"DefaultSortType", "DefaultListingType", "DefaultCommentSortType"} { diff --git a/templates/settings.html b/templates/settings.html index 969f969..43091e5 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -125,7 +125,7 @@
- + {{ if .XHR }}{{ end }}