summaryrefslogtreecommitdiffstats
path: root/models
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 /models
parenta517cfdf7b24514d7c1f6695dc175ce18c832465 (diff)
downloadgitea-e75fd2f783a413ae612e3e6110c912b3ecf9555d.tar.gz
gitea-e75fd2f783a413ae612e3e6110c912b3ecf9555d.zip
simplify names
Diffstat (limited to 'models')
-rw-r--r--models/cron/cron.go2
-rw-r--r--models/models.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models/cron/cron.go b/models/cron/cron.go
index cbf980c050..8e494e5537 100644
--- a/models/cron/cron.go
+++ b/models/cron/cron.go
@@ -15,7 +15,7 @@ import (
var c = cron.New()
-func NewCronContext() {
+func NewContext() {
var (
entry *cron.Entry
err error
diff --git a/models/models.go b/models/models.go
index 5710930d0b..8149bb51b1 100644
--- a/models/models.go
+++ b/models/models.go
@@ -94,7 +94,7 @@ func init() {
}
}
-func LoadModelsConfig() {
+func LoadConfigs() {
sec := setting.Cfg.Section("database")
DbCfg.Type = sec.Key("DB_TYPE").String()
switch DbCfg.Type {