From 514382e2ebfe6869268aeb919c1fa4d224687e13 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 11 Mar 2016 11:56:52 -0500 Subject: Rename module: middleware -> context --- routers/dev/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/dev') diff --git a/routers/dev/template.go b/routers/dev/template.go index 5548f51478..ee81f3804a 100644 --- a/routers/dev/template.go +++ b/routers/dev/template.go @@ -7,11 +7,11 @@ package dev import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/middleware" + "github.com/gogits/gogs/modules/context" "github.com/gogits/gogs/modules/setting" ) -func TemplatePreview(ctx *middleware.Context) { +func TemplatePreview(ctx *context.Context) { ctx.Data["User"] = models.User{Name: "Unknown"} ctx.Data["AppName"] = setting.AppName ctx.Data["AppVer"] = setting.AppVer -- cgit v1.2.3