- ctx->qry.sha1, ctx->qry.sha2, NULL);
- if (ctx->repo->enable_stats)
- reporevlink("stats", "stats", NULL, hc(cmd, "stats"),
- ctx->qry.head, NULL, NULL);
+ ctx->qry.sha1, ctx->qry.sha2, NULL, 0);
+ if (ctx->repo->max_stats)
+ cgit_stats_link("stats", NULL, hc(cmd, "stats"),
+ ctx->qry.head, NULL);