Refactor template render (#36438)
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
||||
|
||||
// ReloadTemplates reloads all the templates
|
||||
func ReloadTemplates(ctx *context.PrivateContext) {
|
||||
err := templates.ReloadHTMLTemplates()
|
||||
err := templates.ReloadAllTemplates()
|
||||
if err != nil {
|
||||
ctx.JSON(http.StatusInternalServerError, private.Response{
|
||||
UserMsg: fmt.Sprintf("Template error: %v", err),
|
||||
|
||||
Reference in New Issue
Block a user