]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tree.c
Add ui-shared.h
[ps-cgit] / ui-tree.c
index df05ad30171d22ce8f162e53beb8d41ae77036af..9be3140c40b7583bfa07a435735f958c6d39b723 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -7,6 +7,8 @@
  */
 
 #include "cgit.h"
  */
 
 #include "cgit.h"
+#include "html.h"
+#include "ui-shared.h"
 
 char *curr_rev;
 char *match_path;
 
 char *curr_rev;
 char *match_path;
@@ -79,7 +81,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
        }
 
        html("<tr><td class='ls-mode'>");
        }
 
        html("<tr><td class='ls-mode'>");
-       html_filemode(mode);
+       cgit_print_filemode(mode);
        html("</td><td>");
        if (S_ISGITLINK(mode)) {
                htmlf("<a class='ls-mod' href='");
        html("</td><td>");
        if (S_ISGITLINK(mode)) {
                htmlf("<a class='ls-mod' href='");