From 0a054aeb9ce8430a62be05283300ec34e9c2b0af Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 17 Jul 2020 13:23:21 -0400 Subject: Add export option Adding the export query parameter to any page downloads a .html with the default stylesheet embedded, and all navigation, forms and internal links removed, for being able to share some part of a private instance of litterbox. --- contexts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contexts.c') diff --git a/contexts.c b/contexts.c index 5c5e5cc..d55181b 100644 --- a/contexts.c +++ b/contexts.c @@ -69,7 +69,7 @@ enum kcgi_err contextsPage(struct kreq *req) { struct khtmlreq html; error = error || khtml_open(&html, req, 0) - || htmlHead(&html, network) + || htmlHead(&html, req, network) || htmlNav(&html, req); if (error) return error; @@ -142,5 +142,5 @@ enum kcgi_err contextsPage(struct kreq *req) { } if (result != SQLITE_DONE) errx(EX_SOFTWARE, "%s", sqlite3_errmsg(db)); - return htmlFooter(&html) || khtml_close(&html); + return htmlFooter(&html, req) || khtml_close(&html); } -- cgit 1.4.1