aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install/install.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install/install.go')
-rw-r--r--routers/install/install.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/install/install.go b/routers/install/install.go
index 6a8f561271..aa9c0f4986 100644
--- a/routers/install/install.go
+++ b/routers/install/install.go
@@ -68,9 +68,13 @@ func Contexter() func(next http.Handler) http.Handler {
}
defer baseCleanUp()
+ ctx.TemplateContext = context.NewTemplateContext(ctx)
+ ctx.TemplateContext["Locale"] = ctx.Locale
+
ctx.AppendContextValue(context.WebContextKey, ctx)
ctx.Data.MergeFrom(middleware.CommonTemplateContextData())
ctx.Data.MergeFrom(middleware.ContextData{
+ "Context": ctx, // TODO: use "ctx" in template and remove this
"locale": ctx.Locale,
"Title": ctx.Locale.Tr("install.install"),
"PageIsInstall": true,