]> gitweb.ps.run Git - ps-cgit/blobdiff - cmd.c
ui-stats: replace 'enable-stats' setting with 'max-stats'
[ps-cgit] / cmd.c
diff --git a/cmd.c b/cmd.c
index 744bf84db246c7f7e4090bde978a62a94e0a1ce2..763a558710a6a4f76590dabcf3a800b3c79aa356 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -112,10 +112,7 @@ static void snapshot_fn(struct cgit_context *ctx)
 
 static void stats_fn(struct cgit_context *ctx)
 {
-       if (ctx->repo->enable_stats)
-               cgit_show_stats(ctx);
-       else
-               cgit_print_error("Stats disabled for this repo");
+       cgit_show_stats(ctx);
 }
 
 static void summary_fn(struct cgit_context *ctx)