From 6663f83de9f699d495b6127e10de74e915021f5b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:55:17 -0700 Subject: Open and close each page through the layout calls --- source/cgit.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'source/cgit.c') diff --git a/source/cgit.c b/source/cgit.c index da86943..ed9b62b 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -1076,11 +1076,9 @@ static int prepare_repo_cmd(int nongit, int err, int clone) // and those clone urls expand macros such // as $CGIT_REPO_URL out of this environment. cgit_prepare_repo_env(ctx.repo); - cgit_print_http_headers(); - cgit_print_docstart(); - cgit_print_pageheader(); + cgit_print_layout_start(); cgit_print_empty_repo(); - cgit_print_docend(); + cgit_print_layout_end(); return 1; } @@ -1115,12 +1113,10 @@ static void process_request(void) // whatever page it asked for. if (!ctx.env.authenticated) { ctx.page.title = "Authentication Required"; - cgit_print_http_headers(); - cgit_print_docstart(); - cgit_print_pageheader(); + cgit_print_layout_start(); open_auth_filter("body"); cgit_close_filter(ctx.cfg.auth_filter); - cgit_print_docend(); + cgit_print_layout_end(); return; } -- cgit