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
*.yml 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
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming index, one that
is widely used among developers working in that index.
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
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

View File

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

View File

@ -23,6 +23,7 @@ func LoadConfigForm(r *http.Request) (*DbConfig, error) {
description := g("description")
domain := g("domain")
email := g("email")
language := g("language")
if project == "" || username == "" || password == "" {
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("NAME", project)
p.Set("DESCRIPTION", description)
p.Set("LANGUAGE", language)
confg := &DbConfig{
DbConn: dbConn,
@ -53,6 +55,7 @@ func LoadConfigForm(r *http.Request) (*DbConfig, error) {
Password: password,
Email: email,
Location: utils.Directory,
Language: language,
}
return confg, nil