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.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 6b47e94fb0..cf849802d9 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 {
@@ -354,7 +350,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)
}
})