mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Send product edition meta to setup wizard
This commit is contained in:
parent
946c433018
commit
fb3f2cc24b
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,7 @@ import (
|
|||
|
||||
// SiteInfo describes set-up information about the site
|
||||
var SiteInfo struct {
|
||||
DBname, DBhash, Issue string
|
||||
DBname, DBhash, Issue, Edition string
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -50,6 +50,8 @@ func (h *Handler) EmberHandler(w http.ResponseWriter, r *http.Request) {
|
|||
SiteInfo.DBhash = ""
|
||||
}
|
||||
|
||||
SiteInfo.Edition = string(h.Runtime.Product.Edition)
|
||||
|
||||
data, err := Embed.Asset("bindata/" + filename)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue