aboutsummaryrefslogtreecommitdiff
path: root/internal/db/git_diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/git_diff.go')
-rw-r--r--internal/db/git_diff.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/git_diff.go b/internal/db/git_diff.go
index 040c472b..a8b43554 100644
--- a/internal/db/git_diff.go
+++ b/internal/db/git_diff.go
@@ -17,7 +17,7 @@ import (
"github.com/gogs/git-module"
- "gogs.io/gogs/internal/setting"
+ "gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/template/highlight"
"gogs.io/gogs/internal/tool"
)
@@ -69,7 +69,7 @@ func init() {
// ComputedInlineDiffFor computes inline diff for the given line.
func (diffSection *DiffSection) ComputedInlineDiffFor(diffLine *git.DiffLine) template.HTML {
- if setting.Git.DisableDiffHighlight {
+ if conf.Git.DisableDiffHighlight {
return template.HTML(html.EscapeString(diffLine.Content[1:]))
}
var (