aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuuso Lapinlampi2016-05-11 17:50:09 +0000
committerJason A. Donenfeld2016-05-12 17:38:00 +0200
commit80f12b3e7e43edcb06aea9811b790b16ca204c81 (patch)
tree46ecae027f43112a74b0f58a8e25e3dc49f246cd
parent86bf5b47916fbe53fe637d7181e93a34d2ad6d0c (diff)
downloadcgit-80f12b3e7e43edcb06aea9811b790b16ca204c81.tar.gz
cgit-80f12b3e7e43edcb06aea9811b790b16ca204c81.tar.bz2
cgit-80f12b3e7e43edcb06aea9811b790b16ca204c81.zip
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, ...)
792 ctx.page.expires = ctx.cfg.cache_dynamic_ttl; 792 ctx.page.expires = ctx.cfg.cache_dynamic_ttl;
793 ctx.page.status = code; 793 ctx.page.status = code;
794 ctx.page.statusmsg = msg; 794 ctx.page.statusmsg = msg;
795 cgit_print_http_headers(); 795 cgit_print_layout_start();
796 cgit_print_docstart();
797 cgit_print_pageheader();
798 va_start(ap, fmt); 796 va_start(ap, fmt);
799 cgit_vprint_error(fmt, ap); 797 cgit_vprint_error(fmt, ap);
800 va_end(ap); 798 va_end(ap);
801 cgit_print_docend(); 799 cgit_print_layout_end();
802} 800}
803 801
804void cgit_print_layout_start(void) 802void cgit_print_layout_start(void)