X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c0dfaf1c281d0697ce43131343d7a9f170a61ff9..2e8e9af1d4161bfe1bfbf1e34b1631b7cc1c1b95:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index 2ab6e9e..477a949 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -1,7 +1,6 @@ /* ui-repolist.c: functions for generating the repolist page * - * Copyright (C) 2006 Lars Hjemli - * Copyright (C) 2012 Jason A. Donenfeld + * Copyright (C) 2006-2014 cgit Development Team * * Licensed under GNU General Public License v2 * (see COPYING for full license text) @@ -107,7 +106,9 @@ static int is_in_url(struct cgit_repo *repo) static void print_sort_header(const char *title, const char *sort) { - htmlf(""); html_txt(ctx.repo->owner); + html(""); html(""); } print_modtime(ctx.repo); @@ -332,13 +339,7 @@ void cgit_print_site_readme() { if (!ctx.cfg.root_readme) return; - if (ctx.cfg.about_filter) { - ctx.cfg.about_filter->argv[1] = ctx.cfg.root_readme; - cgit_open_filter(ctx.cfg.about_filter); - } + cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme); html_include(ctx.cfg.root_readme); - if (ctx.cfg.about_filter) { - cgit_close_filter(ctx.cfg.about_filter); - ctx.cfg.about_filter->argv[1] = NULL; - } + cgit_close_filter(ctx.cfg.about_filter); }