author | Lars Hjemli <hjemli@gmail.com> | 2008-12-06 10:35:49 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-12-06 10:35:49 (UTC) |
commit | 9c8be943f72b6f1bda5a31ce401899c3dd734e98 (patch) (unidiff) | |
tree | 2279ad0a7d36563df7698d6d4e81967d67eb2562 /cgit.c | |
parent | e550440233875b298f8574e9273457516791010f (diff) | |
parent | 8813170390f3c3a0f4743afbc92ede42953fa3b0 (diff) | |
download | cgit-9c8be943f72b6f1bda5a31ce401899c3dd734e98.zip cgit-9c8be943f72b6f1bda5a31ce401899c3dd734e98.tar.gz cgit-9c8be943f72b6f1bda5a31ce401899c3dd734e98.tar.bz2 |
Merge branch 'lh/sort-repolist'
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -153,8 +153,10 @@ static void querystring_cb(const char *name, const char *value) | |||
153 | } else if (!strcmp(name, "name")) { | 153 | } else if (!strcmp(name, "name")) { |
154 | ctx.qry.name = xstrdup(value); | 154 | ctx.qry.name = xstrdup(value); |
155 | } else if (!strcmp(name, "mimetype")) { | 155 | } else if (!strcmp(name, "mimetype")) { |
156 | ctx.qry.mimetype = xstrdup(value); | 156 | ctx.qry.mimetype = xstrdup(value); |
157 | } else if (!strcmp(name, "s")){ | ||
158 | ctx.qry.sort = xstrdup(value); | ||
157 | } | 159 | } |
158 | } | 160 | } |
159 | 161 | ||
160 | static void prepare_context(struct cgit_context *ctx) | 162 | static void prepare_context(struct cgit_context *ctx) |