aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-16 23:08:46 -0400
committerUnknwon <u@gogs.io>2015-09-16 23:08:46 -0400
commite75fd2f783a413ae612e3e6110c912b3ecf9555d (patch)
tree969e7fc034c60db60695780b75815bbba17db7e8 /routers/install.go
parenta517cfdf7b24514d7c1f6695dc175ce18c832465 (diff)
downloadgitea-e75fd2f783a413ae612e3e6110c912b3ecf9555d.tar.gz
gitea-e75fd2f783a413ae612e3e6110c912b3ecf9555d.zip
simplify names
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/install.go b/routers/install.go
index b6ac99cd7a..f4df031186 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -50,11 +50,11 @@ func NewServices() {
// GlobalInit is for global configuration reload-able.
func GlobalInit() {
- setting.NewConfigContext()
+ setting.NewContext()
log.Trace("Custom path: %s", setting.CustomPath)
log.Trace("Log path: %s", setting.LogRootPath)
- mailer.NewMailerContext()
- models.LoadModelsConfig()
+ mailer.NewContext()
+ models.LoadConfigs()
NewServices()
if setting.InstallLock {
@@ -66,7 +66,7 @@ func GlobalInit() {
}
models.HasEngine = true
- cron.NewCronContext()
+ cron.NewContext()
models.InitDeliverHooks()
log.NewGitLogger(path.Join(setting.LogRootPath, "http.log"))
}