|
diff --git a/cgit.c b/cgit.c index b0e1c44..a4788cb 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -61,16 +61,18 @@ void config_cb(const char *name, const char *value) |
61 | else if (!strcmp(name, "logo")) |
61 | else if (!strcmp(name, "logo")) |
62 | ctx.cfg.logo = xstrdup(value); |
62 | ctx.cfg.logo = xstrdup(value); |
63 | else if (!strcmp(name, "index-header")) |
63 | else if (!strcmp(name, "index-header")) |
64 | ctx.cfg.index_header = xstrdup(value); |
64 | ctx.cfg.index_header = xstrdup(value); |
65 | else if (!strcmp(name, "index-info")) |
65 | else if (!strcmp(name, "index-info")) |
66 | ctx.cfg.index_info = xstrdup(value); |
66 | ctx.cfg.index_info = xstrdup(value); |
67 | else if (!strcmp(name, "logo-link")) |
67 | else if (!strcmp(name, "logo-link")) |
68 | ctx.cfg.logo_link = xstrdup(value); |
68 | ctx.cfg.logo_link = xstrdup(value); |
| |
69 | else if (!strcmp(name, "linenumbers")) |
| |
70 | ctx.cfg.linenumbers = atoi(value); |
69 | else if (!strcmp(name, "module-link")) |
71 | else if (!strcmp(name, "module-link")) |
70 | ctx.cfg.module_link = xstrdup(value); |
72 | ctx.cfg.module_link = xstrdup(value); |
71 | else if (!strcmp(name, "virtual-root")) { |
73 | else if (!strcmp(name, "virtual-root")) { |
72 | ctx.cfg.virtual_root = trim_end(value, '/'); |
74 | ctx.cfg.virtual_root = trim_end(value, '/'); |
73 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
75 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
74 | ctx.cfg.virtual_root = ""; |
76 | ctx.cfg.virtual_root = ""; |
75 | } else if (!strcmp(name, "nocache")) |
77 | } else if (!strcmp(name, "nocache")) |
76 | ctx.cfg.nocache = atoi(value); |
78 | ctx.cfg.nocache = atoi(value); |
|