aboutsummaryrefslogtreecommitdiff
path: root/internal/template/highlight/highlight.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/template/highlight/highlight.go')
-rw-r--r--internal/template/highlight/highlight.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/template/highlight/highlight.go b/internal/template/highlight/highlight.go
index bf87ec32..e7b3fe5d 100644
--- a/internal/template/highlight/highlight.go
+++ b/internal/template/highlight/highlight.go
@@ -8,7 +8,7 @@ import (
"path"
"strings"
- "gogs.io/gogs/internal/setting"
+ "gogs.io/gogs/internal/conf"
)
var (
@@ -72,7 +72,7 @@ var (
)
func NewContext() {
- keys := setting.Cfg.Section("highlight.mapping").Keys()
+ keys := conf.File.Section("highlight.mapping").Keys()
for i := range keys {
highlightMapping[keys[i].Name()] = keys[i].Value()
}