From 0afa28de0953ed528486a7d7ad6000f344624710 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 9 Aug 2016 09:53:22 -0400 Subject: Changed autodetection of SiteURL (#3764) * Changed autoconfiguration of SiteURL to be done on every request * Added SiteURL to system console --- utils/config.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'utils') diff --git a/utils/config.go b/utils/config.go index a1a6becd1..6646a341e 100644 --- a/utils/config.go +++ b/utils/config.go @@ -186,7 +186,7 @@ func LoadConfig(fileName string) { Cfg = &config CfgHash = fmt.Sprintf("%x", md5.Sum([]byte(Cfg.ToJson()))) - RegenerateClientConfig() + ClientCfg = getClientConfig(Cfg) // Actions that need to run every time the config is loaded if ldapI := einterfaces.GetLdapInterface(); ldapI != nil { @@ -199,10 +199,6 @@ func LoadConfig(fileName string) { } } -func RegenerateClientConfig() { - ClientCfg = getClientConfig(Cfg) -} - func getClientConfig(c *model.Config) map[string]string { props := make(map[string]string) -- cgit v1.2.3-1-g7c22