diff options
author | Unknwon <u@gogs.io> | 2017-01-30 07:20:48 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-01-30 07:20:48 -0500 |
commit | 4bc98f7aa2b94a18ddaef26f64ae01c2d38fb552 (patch) | |
tree | c3e3852d32a34bb1099b92585183493e9efa4d8b /cmd | |
parent | 207960b459d635667226d2d78f11ef3279ba9cc7 (diff) |
Move models/mail.go to modules/mail.go
To use interface to replace *models.User in avoiding cycle import.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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") |