aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/user')
-rw-r--r--routers/web/user/code.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/web/user/code.go b/routers/web/user/code.go
index 29b8b91c89..42d7284189 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")