diff options
-rw-r--r-- | config.def.h | 3 | ||||
-rw-r--r-- | 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"; @@ -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)) |