Renamed receiver names

This commit is contained in:
Deluan
2016-02-25 18:47:25 -05:00
parent 39757f884a
commit a1829d432a
4 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -8,18 +8,18 @@ import (
type MainController struct{ beego.Controller }
func (this *MainController) Get() {
this.Ctx.Redirect(302, "/static/Jamstash/")
func (c *MainController) Get() {
c.Ctx.Redirect(302, "/static/Jamstash/")
}
func (this *MainController) Error404() {
func (c *MainController) Error404() {
if beego.BConfig.RunMode == beego.DEV || beego.BConfig.Log.AccessLogs {
r := this.Ctx.Request
r := c.Ctx.Request
devInfo := fmt.Sprintf(" | %-10s | %-40s | %-16s | %-10s |", r.Method, r.URL.Path, " ", "notmatch")
if beego.DefaultAccessLogFilter == nil || !beego.DefaultAccessLogFilter.Filter(this.Ctx) {
if beego.DefaultAccessLogFilter == nil || !beego.DefaultAccessLogFilter.Filter(c.Ctx) {
beego.Warn(devInfo)
}
}
this.CustomAbort(404, "Error 404")
c.CustomAbort(404, "Error 404")
}