diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
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.
Diffstat (limited to 'source/cmd.c')
-rw-r--r--source/cmd.c2
1 file changed, 1 insertion, 1 deletion
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");