CLI: invite user by email - missing siteURL in email (#3297)

Этот коммит содержится в:
Thomas Balthazar
2016-06-10 13:59:20 +02:00
коммит произвёл Joram Wilander
родитель aa61ea0e44
Коммит 252d1c7e98
2 изменённых файлов: 27 добавлений и 11 удалений

Просмотреть файл

@@ -139,7 +139,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
protocol := GetProtocol(r)
c.setSiteURL(protocol + "://" + r.Host)
c.SetSiteURL(protocol + "://" + r.Host)
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgLastModified))
@@ -417,7 +417,7 @@ func (c *Context) SetTeamURLFromSession() {
}
}
func (c *Context) setSiteURL(url string) {
func (c *Context) SetSiteURL(url string) {
c.siteURL = url
}