aboutsummaryrefslogtreecommitdiff
path: root/internal/template/highlight/highlight.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-22 09:05:26 +0800
committerGitHub <noreply@github.com>2020-02-22 09:05:26 +0800
commit648d9e253c1924b832248f26fee42b2fb64dc3bc (patch)
tree51649fad974cd7284a47d30e412c90e7ab72cd2c /internal/template/highlight/highlight.go
parent5b14cc6f0b7b661beb2640a94bd15660cdb48587 (diff)
conf: overhaul server settings (#5928)
* conf: rename package * Requires Go 1.12 * Fix lint * Fix lint * Overhaul * db: fix tests * Save my work * Fix tests * Server.UnixSocketPermission * Server.LocalRootURL * SSH settings * Server.OfflineMode * Save my work * App.Version * Remove [server] STATIC_ROOT_PATH * Server.LandingURL
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()
}