1
0
Fork 0
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:
sauls8t 2019-06-19 12:47:18 +01:00
parent 946c433018
commit fb3f2cc24b

View file

@ -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)