From 4bc98f7aa2b94a18ddaef26f64ae01c2d38fb552 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 30 Jan 2017 07:20:48 -0500 Subject: Move models/mail.go to modules/mail.go To use interface to replace *models.User in avoiding cycle import. --- cmd/web.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index c39675ae..9979929c 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -37,6 +37,7 @@ import ( "github.com/gogits/gogs/modules/bindata" "github.com/gogits/gogs/modules/context" "github.com/gogits/gogs/modules/log" + "github.com/gogits/gogs/modules/mailer" "github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/template" "github.com/gogits/gogs/routers" @@ -140,7 +141,7 @@ func newMacaron() *macaron.Macaron { Funcs: funcMap, IndentJSON: macaron.Env != macaron.PROD, })) - models.InitMailRender(path.Join(setting.StaticRootPath, "templates/mail"), + mailer.InitMailRender(path.Join(setting.StaticRootPath, "templates/mail"), path.Join(setting.CustomPath, "templates/mail"), funcMap) localeNames, err := bindata.AssetDir("conf/locale") -- cgit v1.2.3