summaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 5300539d42..1e6f8e9525 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -96,9 +96,9 @@ func (ctx *Context) HasError() bool {
return hasErr.(bool)
}
-// HTML calls render.HTML underlying but reduce one argument.
+// HTML calls Context.HTML and converts template name to string.
func (ctx *Context) HTML(status int, name base.TplName) {
- ctx.Render.HTML(status, string(name), ctx.Data)
+ ctx.Context.HTML(status, string(name))
}
// RenderWithErr used for page has form validation but need to prompt error to users.