ui-shared: Simplify cgit_print_error_page() logic
This commit is contained in:
والد
86bf5b4791
کامیت
80f12b3e7e
@ -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.expires = ctx.cfg.cache_dynamic_ttl;
|
||||||
ctx.page.status = code;
|
ctx.page.status = code;
|
||||||
ctx.page.statusmsg = msg;
|
ctx.page.statusmsg = msg;
|
||||||
cgit_print_http_headers();
|
cgit_print_layout_start();
|
||||||
cgit_print_docstart();
|
|
||||||
cgit_print_pageheader();
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
cgit_vprint_error(fmt, ap);
|
cgit_vprint_error(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
cgit_print_docend();
|
cgit_print_layout_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cgit_print_layout_start(void)
|
void cgit_print_layout_start(void)
|
||||||
|
بارگذاری…
مرجع در شماره جدید
Block a user