mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
simplify names
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user