Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2016-05-11 20:50:09 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2016-05-12 18:38:00 +0300
commit80f12b3e7e43edcb06aea9811b790b16ca204c81 (patch)
tree46ecae027f43112a74b0f58a8e25e3dc49f246cd
parent86bf5b47916fbe53fe637d7181e93a34d2ad6d0c (diff)
ui-shared: Simplify cgit_print_error_page() logic
-rw-r--r--ui-shared.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 9a38aa9..bf92747 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -792,13 +792,11 @@ void cgit_print_error_page(int code, const char *msg, const char *fmt, ...)
ctx.page.expires = ctx.cfg.cache_dynamic_ttl;
ctx.page.status = code;
ctx.page.statusmsg = msg;
- cgit_print_http_headers();
- cgit_print_docstart();
- cgit_print_pageheader();
+ cgit_print_layout_start();
va_start(ap, fmt);
cgit_vprint_error(fmt, ap);
va_end(ap);
- cgit_print_docend();
+ cgit_print_layout_end();
}
void cgit_print_layout_start(void)