]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
filter: add lua support
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 29b658e7d2c1960b5caab306b1af066feab36092..725fd65e37ee3ad6e43b58d4066b44f3e599ef5d 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -904,6 +904,8 @@ int main(int argc, const char **argv)
        const char *path;
        int err, ttl;
 
+       cgit_init_filters();
+
        prepare_context(&ctx);
        cgit_repolist.length = 0;
        cgit_repolist.count = 0;
@@ -951,6 +953,7 @@ int main(int argc, const char **argv)
                ctx.cfg.cache_size = 0;
        err = cache_process(ctx.cfg.cache_size, ctx.cfg.cache_root,
                            ctx.qry.raw, ttl, process_request, &ctx);
+       cgit_cleanup_filters();
        if (err)
                cgit_print_error("Error processing page: %s (%d)",
                                 strerror(err), err);