]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
filter: pass extra arguments via cgit_open_filter
[ps-cgit] / ui-repolist.c
index d4ee2798c0d9be1ec02a308b4072ac97b0889c42..f622a0130184843206932969a84d5587352c8f4a 100644 (file)
@@ -331,13 +331,9 @@ 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);
-       }
+       if (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) {
+       if (ctx.cfg.about_filter)
                cgit_close_filter(ctx.cfg.about_filter);
-               ctx.cfg.about_filter->argv[1] = NULL;
-       }
 }