Skip to content

Commit 7daf92a

Browse files
committed
fix attachment ENABLED
1 parent fd274ff commit 7daf92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ func NewContext() {
947947
AttachmentAllowedTypes = strings.Replace(sec.Key("ALLOWED_TYPES").MustString("image/jpeg,image/png,application/zip,application/gzip"), "|", ",", -1)
948948
AttachmentMaxSize = sec.Key("MAX_SIZE").MustInt64(4)
949949
AttachmentMaxFiles = sec.Key("MAX_FILES").MustInt(5)
950-
AttachmentEnabled = sec.Key("ENABLE").MustBool(true)
950+
AttachmentEnabled = sec.Key("ENABLED").MustBool(true)
951951

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

0 commit comments

Comments
 (0)