From d57d5d4c678069a539cb8300ca124b929361bd3f Mon Sep 17 00:00:00 2001
From: bie <bie@blekksprut.net>
Date: Fri, 11 Nov 2016 03:01:40 +0900
Subject: sette orz-url

---
 config.def.h | 3 ++-
 ukulele.c    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h
index 74bcc14..09a60d7 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,6 +1,7 @@
-int orz = 0;
 int dirlist = 0;
 
+static char *orz = 0;
+
 static char *title = "a wiki";
 static char *id = "anonymous";
 static char *home = "home";
diff --git a/ukulele.c b/ukulele.c
index f1b87af..96f592c 100644
--- a/ukulele.c
+++ b/ukulele.c
@@ -123,7 +123,7 @@ int edit(char *path) {
   printf("<form method='post'>\n");
   printf("<p class='edit'>\n");
   if(orz)
-    printf("<a id='orz' href='#'>{picto}</a><br>\n");
+    printf("<a id='orz' data-url='%s' href='#'>{picto}</a><br>\n", orz);
   printf("<textarea name=t rows=24 cols=72>");
   if(fp)
     while(fgets(buffer, sizeof(buffer), fp))
-- 
cgit v1.0