1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Move environment variables to config package

This commit is contained in:
Frédéric Guillot 2018-01-20 16:49:47 -08:00
parent ffabb009b8
commit da5c8c2edb
3 changed files with 57 additions and 34 deletions

View file

@ -39,7 +39,7 @@ func (e *Engine) parseAll() {
return e.cfg.BaseURL()
},
"hasOAuth2Provider": func(provider string) bool {
return e.cfg.Get("OAUTH2_PROVIDER", "") == provider
return e.cfg.OAuth2Provider() == provider
},
"hasKey": func(dict map[string]string, key string) bool {
if value, found := dict[key]; found {