summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-17 22:31:34 -0500
committerUnknwon <u@gogs.io>2015-12-17 22:31:34 -0500
commit1e7e092992164acc243ec01859509eaa2207196d (patch)
treefe0cbf40da66fb92ef40b07704028e13339b8511 /routers
parent33a99d587a034ba476328437da60049dbf830d6a (diff)
downloadgitea-1e7e092992164acc243ec01859509eaa2207196d.tar.gz
gitea-1e7e092992164acc243ec01859509eaa2207196d.zip
#2103 Ability to map extensions for syntax highlighting in config
Diffstat (limited to 'routers')
-rw-r--r--routers/install.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/install.go b/routers/install.go
index 34dd475774..d5472c9b3e 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -28,6 +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/user"
)
@@ -55,6 +56,7 @@ func NewServices() {
// GlobalInit is for global configuration reload-able.
func GlobalInit() {
setting.NewContext()
+ template.NewContext()
log.Trace("Custom path: %s", setting.CustomPath)
log.Trace("Log path: %s", setting.LogRootPath)
models.LoadConfigs()