Browse Source

Fix trimming of markup section names (#4863)

Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
for-closed-social
Nicolas Lenz 6 years ago
committed by techknowlogick
parent
commit
668a477c69
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/setting/setting.go

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

@ -1155,7 +1155,7 @@ func NewContext() {
extensionReg := regexp.MustCompile(`\.\w`)
for _, sec := range Cfg.Section("markup").ChildSections() {
name := strings.TrimLeft(sec.Name(), "markup.")
name := strings.TrimPrefix(sec.Name(), "markup.")
if name == "" {
log.Warn("name is empty, markup " + sec.Name() + "ignored")
continue

Loading…
Cancel
Save