From a41a1fe60da5b02891640dd5f99758015b78bcc9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 24 Jul 2014 12:49:40 -0400 Subject: Mirror fix --- modules/middleware/context.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modules/middleware/context.go') diff --git a/modules/middleware/context.go b/modules/middleware/context.go index c641449a..6bd529cd 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -139,10 +139,6 @@ func (ctx *Context) Handle(status int, title string, err error) { ctx.HTML(status, base.TplName(fmt.Sprintf("status/%d", status))) } -func (ctx *Context) Debug(msg string, args ...interface{}) { - log.Debug(msg, args...) -} - func (ctx *Context) GetCookie(name string) string { cookie, err := ctx.Req.Cookie(name) if err != nil { @@ -356,7 +352,7 @@ func InitContext() martini.Handler { ctx.Session.SessionRelease(res) if flash := ctx.Flash.Encode(); len(flash) > 0 { - ctx.SetCookie("gogs_flash", ctx.Flash.Encode(), 0) + ctx.SetCookie("gogs_flash", flash, 0) } }) -- cgit v1.2.3