- } else if (!strcmp(cgit_query_page, "log")) {
- cgit_print_log(cgit_query_head, cgit_query_ofs, 100,
- cgit_query_search);
+ cgit_print_docend();
+ return;
+ }
+
+ cgit_print_pageheader(cgit_query_page, show_search);
+
+ if (!strcmp(cgit_query_page, "log")) {
+ cgit_print_log(cgit_query_head, cgit_query_ofs,
+ cgit_max_commit_count, cgit_query_search,
+ cgit_query_path);