better wording
This commit is contained in:
parent
1490e862cc
commit
9a4132cb09
|
@ -122,7 +122,7 @@ func getEngine() (*xorm.Engine, error) {
|
||||||
func NewTestEngine(x *xorm.Engine) (err error) {
|
func NewTestEngine(x *xorm.Engine) (err error) {
|
||||||
x, err = getEngine()
|
x, err = getEngine()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("connect to database: %v", err)
|
return fmt.Errorf("Connect to database: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
x.SetMapper(core.GonicMapper{})
|
x.SetMapper(core.GonicMapper{})
|
||||||
|
@ -132,7 +132,7 @@ func NewTestEngine(x *xorm.Engine) (err error) {
|
||||||
func SetEngine() (err error) {
|
func SetEngine() (err error) {
|
||||||
x, err = getEngine()
|
x, err = getEngine()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("connect to database: %v", err)
|
return fmt.Errorf("Connect to database: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
x.SetMapper(core.GonicMapper{})
|
x.SetMapper(core.GonicMapper{})
|
||||||
|
@ -144,7 +144,7 @@ func SetEngine() (err error) {
|
||||||
|
|
||||||
f, err := os.Create(logPath)
|
f, err := os.Create(logPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("models.init(fail to create xorm.log): %v", err)
|
return fmt.Errorf("Fail to create xorm.log: %v", err)
|
||||||
}
|
}
|
||||||
x.SetLogger(xorm.NewSimpleLogger(f))
|
x.SetLogger(xorm.NewSimpleLogger(f))
|
||||||
|
|
||||||
|
|
|
@ -460,10 +460,10 @@ func newLogService() {
|
||||||
func newCacheService() {
|
func newCacheService() {
|
||||||
CacheAdapter = Cfg.Section("cache").Key("ADAPTER").In("memory", []string{"memory", "redis", "memcache"})
|
CacheAdapter = Cfg.Section("cache").Key("ADAPTER").In("memory", []string{"memory", "redis", "memcache"})
|
||||||
if EnableRedis {
|
if EnableRedis {
|
||||||
log.Info("Redis Enabled")
|
log.Info("Redis Supported")
|
||||||
}
|
}
|
||||||
if EnableMemcache {
|
if EnableMemcache {
|
||||||
log.Info("Memcache Enabled")
|
log.Info("Memcache Supported")
|
||||||
}
|
}
|
||||||
|
|
||||||
switch CacheAdapter {
|
switch CacheAdapter {
|
||||||
|
|
|
@ -72,7 +72,7 @@ func GlobalInit() {
|
||||||
log.NewGitLogger(path.Join(setting.LogRootPath, "http.log"))
|
log.NewGitLogger(path.Join(setting.LogRootPath, "http.log"))
|
||||||
}
|
}
|
||||||
if models.EnableSQLite3 {
|
if models.EnableSQLite3 {
|
||||||
log.Info("SQLite3 Enabled")
|
log.Info("SQLite3 Supported")
|
||||||
}
|
}
|
||||||
checkRunMode()
|
checkRunMode()
|
||||||
}
|
}
|
||||||
|
@ -213,6 +213,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
|
||||||
|
|
||||||
// Check admin password.
|
// Check admin password.
|
||||||
if form.AdminPasswd != form.AdminConfirmPasswd {
|
if form.AdminPasswd != form.AdminConfirmPasswd {
|
||||||
|
ctx.Data["Err_Admin"] = true
|
||||||
ctx.Data["Err_AdminPasswd"] = true
|
ctx.Data["Err_AdminPasswd"] = true
|
||||||
ctx.RenderWithErr(ctx.Tr("form.password_not_match"), INSTALL, form)
|
ctx.RenderWithErr(ctx.Tr("form.password_not_match"), INSTALL, form)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue