summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-01-31 14:19:02 -0200
committerAndrey Nering <andrey.nering@gmail.com>2016-02-04 18:21:47 -0200
commit2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1 (patch)
tree5d09fae4e0f0be52ec38437070433623c89f7006 /routers/install.go
parent137a49e8342ab207c8570fc18b7c81b5fa9789ab (diff)
downloadgitea-2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1.tar.gz
gitea-2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1.zip
Enable sintax highlighting on diff view. Close #733
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/install.go b/routers/install.go
index 120aa46851..02bc6fd60c 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -28,7 +28,7 @@ import (
"github.com/gogits/gogs/modules/middleware"
"github.com/gogits/gogs/modules/setting"
"github.com/gogits/gogs/modules/ssh"
- "github.com/gogits/gogs/modules/template"
+ "github.com/gogits/gogs/modules/template/highlight"
"github.com/gogits/gogs/modules/user"
)
@@ -56,7 +56,7 @@ func NewServices() {
// GlobalInit is for global configuration reload-able.
func GlobalInit() {
setting.NewContext()
- template.NewContext()
+ highlight.NewContext()
log.Trace("Custom path: %s", setting.CustomPath)
log.Trace("Log path: %s", setting.LogRootPath)
models.LoadConfigs()