Fix the order of the stylesheets.
This commit is contained in:
parent
757bc9874f
commit
fb990c182c
@ -112,7 +112,13 @@ func FootHeaders(w http.ResponseWriter, header *c.Header) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func renderTemplate3(tmplName string, hookName string, w http.ResponseWriter, r *http.Request, h *c.Header, pi interface{}) error {
|
func renderTemplate3(tmplName string, hookName string, w http.ResponseWriter, r *http.Request, h *c.Header, pi interface{}) error {
|
||||||
|
s := h.Stylesheets
|
||||||
|
h.Stylesheets = nil
|
||||||
c.PrepResources(&h.CurrentUser, h, h.Theme)
|
c.PrepResources(&h.CurrentUser, h, h.Theme)
|
||||||
|
for _, ss := range s {
|
||||||
|
h.Stylesheets = append(h.Stylesheets,ss)
|
||||||
|
}
|
||||||
|
|
||||||
if h.CurrentUser.Loggedin {
|
if h.CurrentUser.Loggedin {
|
||||||
h.MetaDesc = ""
|
h.MetaDesc = ""
|
||||||
h.OGDesc = ""
|
h.OGDesc = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user