Add raw, history file button, and other mirror fixes
This commit is contained in:
parent
17c1bc7383
commit
963354c5d7
21 changed files with 48 additions and 212 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue