aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-07 11:49:11 -0500
committerUnknwon <u@gogs.io>2016-02-07 11:49:11 -0500
commitf15a2f9b25bbec130915fec5b33c7e49dc7cf57d (patch)
tree1ba3aa079c4f931a6fef87693cf83e731a323bcc /routers/install.go
parent3b102a71a2cef4a3cdb748bbc6e0499fdec5e3b4 (diff)
parent2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1 (diff)
downloadgitea-f15a2f9b25bbec130915fec5b33c7e49dc7cf57d.tar.gz
gitea-f15a2f9b25bbec130915fec5b33c7e49dc7cf57d.zip
Merge pull request #2528 from andreynering/diff-sintax-highlight-733
Enable syntax highlighting on diff view
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 b311355bf8..fc9e5ec5e1 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()