Unidiff1 files changed, 2 insertions, 1 deletions
|
diff --git a/cgit.c b/cgit.c index 1f46e0d..763242a 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -7,12 +7,13 @@ |
7 | */ |
7 | */ |
8 | |
8 | |
9 | #include "cgit.h" |
9 | #include "cgit.h" |
10 | #include "cache.h" |
10 | #include "cache.h" |
11 | #include "cmd.h" |
11 | #include "cmd.h" |
12 | #include "configfile.h" |
12 | #include "configfile.h" |
| |
13 | #include "html.h" |
13 | #include "ui-shared.h" |
14 | #include "ui-shared.h" |
14 | |
15 | |
15 | const char *cgit_version = CGIT_VERSION; |
16 | const char *cgit_version = CGIT_VERSION; |
16 | |
17 | |
17 | void config_cb(const char *name, const char *value) |
18 | void config_cb(const char *name, const char *value) |
18 | { |
19 | { |
@@ -441,13 +442,13 @@ int main(int argc, const char **argv) |
441 | config_cb); |
442 | config_cb); |
442 | if (getenv("SCRIPT_NAME")) |
443 | if (getenv("SCRIPT_NAME")) |
443 | ctx.cfg.script_name = xstrdup(getenv("SCRIPT_NAME")); |
444 | ctx.cfg.script_name = xstrdup(getenv("SCRIPT_NAME")); |
444 | if (getenv("QUERY_STRING")) |
445 | if (getenv("QUERY_STRING")) |
445 | ctx.qry.raw = xstrdup(getenv("QUERY_STRING")); |
446 | ctx.qry.raw = xstrdup(getenv("QUERY_STRING")); |
446 | cgit_parse_args(argc, argv); |
447 | cgit_parse_args(argc, argv); |
447 | cgit_parse_query(ctx.qry.raw, querystring_cb); |
448 | http_parse_querystring(ctx.qry.raw, querystring_cb); |
448 | if (!cgit_prepare_cache(&item)) |
449 | if (!cgit_prepare_cache(&item)) |
449 | return 0; |
450 | return 0; |
450 | if (ctx.cfg.nocache) { |
451 | if (ctx.cfg.nocache) { |
451 | cgit_fill_cache(&item, 0); |
452 | cgit_fill_cache(&item, 0); |
452 | } else { |
453 | } else { |
453 | cgit_check_cache(&item); |
454 | cgit_check_cache(&item); |
|