0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-01 06:03:00 +01:00

fix install default db option

This commit is contained in:
Unknwon 2015-07-31 16:23:17 +08:00
parent bdd92dc7d1
commit 009d692c7d

View file

@ -98,11 +98,11 @@ func Install(ctx *middleware.Context) {
form.DbName = models.DbCfg.Name
form.DbPath = models.DbCfg.Path
curDbOp := ""
if models.EnableSQLite3 {
curDbOp = "SQLite3" // Default when enabled.
ctx.Data["CurDbOption"] = "SQLite3" // Default when enabled.
} else {
ctx.Data["CurDbOption"] = "MySQL"
}
ctx.Data["CurDbOption"] = curDbOp
// Application general settings
form.AppName = setting.AppName