diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2016-01-31 14:19:02 -0200 |
---|---|---|
committer | Andrey Nering <andrey.nering@gmail.com> | 2016-02-04 18:21:47 -0200 |
commit | 2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1 (patch) | |
tree | 5d09fae4e0f0be52ec38437070433623c89f7006 /routers/install.go | |
parent | 137a49e8342ab207c8570fc18b7c81b5fa9789ab (diff) | |
download | gitea-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.go | 4 |
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() |