pull/618/head
hunterlong 2020-06-02 00:05:13 -07:00
parent 98175ab326
commit d463f548ad
4 changed files with 7 additions and 3 deletions

2
.gitattributes vendored
View File

@ -1,4 +1,4 @@
*.gohtml linguist-index=golang *.gohtml linguist-language=golang
*.js linguist-detectable=false *.js linguist-detectable=false
*.yml linguist-detectable=false *.yml linguist-detectable=false
*.json linguist-detectable=false *.json linguist-detectable=false

View File

@ -117,8 +117,8 @@ form of a work.
A "Standard Interface" means an interface that either is an official A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming index, one that interfaces specified for a particular programming language, one that
is widely used among developers working in that index. is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of than the work as a whole, that (a) is included in the normal form of

View File

@ -90,6 +90,7 @@ func processSetupHandler(w http.ResponseWriter, r *http.Request) {
CreatedAt: utils.Now(), CreatedAt: utils.Now(),
UseCdn: null.NewNullBool(false), UseCdn: null.NewNullBool(false),
Footer: null.NewNullString(""), Footer: null.NewNullString(""),
Language: confgs.Language,
} }
log.Infoln("Creating new Core") log.Infoln("Creating new Core")

View File

@ -23,6 +23,7 @@ func LoadConfigForm(r *http.Request) (*DbConfig, error) {
description := g("description") description := g("description")
domain := g("domain") domain := g("domain")
email := g("email") email := g("email")
language := g("language")
if project == "" || username == "" || password == "" { if project == "" || username == "" || password == "" {
err := errors.New("Missing required elements on setup form") err := errors.New("Missing required elements on setup form")
@ -38,6 +39,7 @@ func LoadConfigForm(r *http.Request) (*DbConfig, error) {
p.Set("DB_DATABASE", dbDatabase) p.Set("DB_DATABASE", dbDatabase)
p.Set("NAME", project) p.Set("NAME", project)
p.Set("DESCRIPTION", description) p.Set("DESCRIPTION", description)
p.Set("LANGUAGE", language)
confg := &DbConfig{ confg := &DbConfig{
DbConn: dbConn, DbConn: dbConn,
@ -53,6 +55,7 @@ func LoadConfigForm(r *http.Request) (*DbConfig, error) {
Password: password, Password: password,
Email: email, Email: email,
Location: utils.Directory, Location: utils.Directory,
Language: language,
} }
return confg, nil return confg, nil