1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

set defaults for request context

This commit is contained in:
Harvey Kandola 2017-08-27 16:39:09 +01:00
parent 63b24aed3f
commit 8081b60146
23 changed files with 692 additions and 666 deletions

View file

@ -99,7 +99,8 @@ func Setup(s *domain.Store) error {
var json = make([]byte, 0)
if PluginFile == "DB" {
json = []byte(s.Setting.Get("FILEPLUGINS", ""))
c, _ := s.Setting.Get("FILEPLUGINS", "")
json = []byte(c)
if len(bytes.TrimSpace(json)) == 0 {
return nil // don't fail if the DB does not exist yet
}