Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Drop the hidden form fields' unused page argument
Diffstat (limited to '')
| -rw-r--r-- | source/ui-shared.c | 6 |
1 file changed, 3 insertions, 3 deletions
diff --git a/source/ui-shared.c b/source/ui-shared.c index b34861d..3116b7f 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -422,7 +422,7 @@ static void print_header(void) // Switching branch means leaving the pinned commit behind, so // the id fields stay out of the form. ctx.qry.oid = ctx.qry.oid2 = NULL; - cgit_add_hidden_formfields(0, 1, ctx.qry.page); + cgit_add_hidden_formfields(0, 1); ctx.qry.oid = oid; ctx.qry.oid2 = oid2; html("<select name='h' aria-label='Branch'>\n"); @@ -528,7 +528,7 @@ static void print_repo_search(void) html("<form class='search' role='search' method='get' action='"); write_page_url("log", ctx.qry.vpath); html("'>\n"); - cgit_add_hidden_formfields(1, 0, "log"); + cgit_add_hidden_formfields(1, 0); html("<select name='qt' aria-label='Search type'>\n"); html_option("grep", "log msg", ctx.qry.grep); html_option("author", "author", ctx.qry.grep); @@ -1597,7 +1597,7 @@ void cgit_print_clone_row(const char *url, int colspan) free(fallback); } -void cgit_add_hidden_formfields(int incl_head, int incl_search, const char *page UNUSED) +void cgit_add_hidden_formfields(int incl_head, int incl_search) { if (incl_head && head_is_named(ctx.qry.head)) html_hidden("h", ctx.qry.head); |
