From 252d1c7e9822722e75b52944c8dd58ab3b36ca07 Mon Sep 17 00:00:00 2001 From: Thomas Balthazar Date: Fri, 10 Jun 2016 13:59:20 +0200 Subject: CLI: invite user by email - missing siteURL in email (#3297) --- api/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/context.go') diff --git a/api/context.go b/api/context.go index 5aa35ad89..798f4dc87 100644 --- a/api/context.go +++ b/api/context.go @@ -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 } -- cgit v1.2.3-1-g7c22