aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/admin/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/admin/admin.go')
-rw-r--r--routers/web/admin/admin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go
index e34124049e..1838fe190c 100644
--- a/routers/web/admin/admin.go
+++ b/routers/web/admin/admin.go
@@ -127,8 +127,8 @@ func prepareDeprecatedWarningsAlert(ctx *context.Context) {
func Dashboard(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("admin.dashboard")
ctx.Data["PageIsAdminDashboard"] = true
- ctx.Data["NeedUpdate"] = updatechecker.GetNeedUpdate()
- ctx.Data["RemoteVersion"] = updatechecker.GetRemoteVersion()
+ ctx.Data["NeedUpdate"] = updatechecker.GetNeedUpdate(ctx)
+ ctx.Data["RemoteVersion"] = updatechecker.GetRemoteVersion(ctx)
// FIXME: update periodically
updateSystemStatus()
ctx.Data["SysStatus"] = sysStatus