diff --git a/routers/web/user/code.go b/routers/web/user/code.go index 29b8b91c89ecd..42d7284189bb0 100644 --- a/routers/web/user/code.go +++ b/routers/web/user/code.go @@ -27,6 +27,11 @@ func CodeSearch(ctx *context.Context) { shared_user.PrepareContextForProfileBigAvatar(ctx) shared_user.RenderUserHeader(ctx) + if err := shared_user.LoadHeaderCount(ctx); err != nil { + ctx.ServerError("LoadHeaderCount", err) + return + } + ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled ctx.Data["Title"] = ctx.Tr("explore.code")