Add raw, history file button, and other mirror fixes

This commit is contained in:
Unknwon 2014-10-11 18:02:48 -04:00
parent 17c1bc7383
commit 963354c5d7
21 changed files with 48 additions and 212 deletions

View file

@ -75,12 +75,6 @@ type Context struct {
}
}
// Query querys form parameter.
func (ctx *Context) Query(name string) string {
ctx.Req.ParseForm()
return ctx.Req.Form.Get(name)
}
// HasError returns true if error occurs in form validation.
func (ctx *Context) HasApiError() bool {
hasErr, ok := ctx.Data["HasError"]