]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
ui-stats: replace 'enable-stats' setting with 'max-stats'
[ps-cgit] / ui-shared.c
index 0e688a0141a4a055a35774856aa26d1d8e8c4675..97b9d462d9d6e44f73306b454265753326cc7c74 100644 (file)
@@ -641,7 +641,7 @@ void cgit_print_pageheader(struct cgit_context *ctx)
                                 ctx->qry.head, ctx->qry.sha1);
                cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head,
                               ctx->qry.sha1, ctx->qry.sha2, NULL);
-               if (ctx->repo->enable_stats)
+               if (ctx->repo->max_stats)
                        reporevlink("stats", "stats", NULL, hc(cmd, "stats"),
                                    ctx->qry.head, NULL, NULL);
                if (ctx->repo->readme)