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:
parent
63b24aed3f
commit
8081b60146
23 changed files with 692 additions and 666 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue