]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-plain.c
ui-stats.c: create a control panel for stat options
[cgit.git] / ui-plain.c
index da76406a9142c820625dd02bd53b0033ee6d1d83..1b2b67297b215ef632ebd0d36bd9cef413e4dee2 100644 (file)
@@ -34,7 +34,7 @@ static void print_object(const unsigned char *sha1, const char *path)
        ctx.page.mimetype = NULL;
        ext = strrchr(path, '.');
        if (ext && *(++ext)) {
-               mime = string_list_lookup(ext, &ctx.cfg.mimetypes);
+               mime = string_list_lookup(&ctx.cfg.mimetypes, ext);
                if (mime)
                        ctx.page.mimetype = (char *)mime->util;
        }