From 6fbfebf300fcc92f349db18da05f748c4d355d21 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 6 Sep 2026 14:06:51 -1000 Subject: Fold `enable-stats` back into `max-stats` A `max-stats` period enables the page again, as it did before v2.2.0, so one key does both jobs. --- source/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cmd.c') diff --git a/source/cmd.c b/source/cmd.c index 68c395a..b6b1c67 100644 --- a/source/cmd.c +++ b/source/cmd.c @@ -162,7 +162,7 @@ static void snapshot_fn(void) static void stats_fn(void) { - if (ctx.repo->enable_stats) + if (ctx.repo->max_stats) cgit_show_stats(); else cgit_print_error_page(404, "Not Found", "Stats are disabled"); -- cgit v2.8.0