Browse Source

fix attachment ENABLED (#4064)

* fix attachment ENABLED

* change wrong name on app.ini.sample
tags/v1.5.0-dev
Lunny Xiao GitHub 7 years ago
parent
commit
918251f925
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/setting/setting.go

+ 1
- 1
modules/setting/setting.go View File

@@ -947,7 +947,7 @@ func NewContext() {
AttachmentAllowedTypes = strings.Replace(sec.Key("ALLOWED_TYPES").MustString("image/jpeg,image/png,application/zip,application/gzip"), "|", ",", -1)
AttachmentMaxSize = sec.Key("MAX_SIZE").MustInt64(4)
AttachmentMaxFiles = sec.Key("MAX_FILES").MustInt(5)
AttachmentEnabled = sec.Key("ENABLE").MustBool(true)
AttachmentEnabled = sec.Key("ENABLED").MustBool(true)

TimeFormatKey := Cfg.Section("time").Key("FORMAT").MustString("RFC1123")
TimeFormat = map[string]string{


Loading…
Cancel
Save