aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe little girl <yui@blekksprut.net>2013-12-13 17:29:23 +0100
committerthe little girl <yui@blekksprut.net>2013-12-13 17:29:23 +0100
commitd1140db2972796f190b64d0b59698d44df4c23fd (patch)
tree5956699806a3bdf650d9dea2f8fd8c3b643d4c66
parent0ec3fa9d81e2d43af6710c2c8299383e14e3fbe9 (diff)
downloadukulele-d1140db2972796f190b64d0b59698d44df4c23fd.tar.xz
hack for å fikse namespacebug
-rw-r--r--wiki.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wiki.c b/wiki.c
index f06f468..04d1fd9 100644
--- a/wiki.c
+++ b/wiki.c
@@ -36,8 +36,10 @@ void head(char *page, char *link, char *what) {
printf("<!doctype html>\n");
printf("<title>%s · %s</title>\n", title, page);
printf("<link rel='stylesheet' href='%s/wiki.css'>\n", base);
- if(link && what)
+ if(link && what && !strcmp(what, "rediger"))
printf("<h1><a data-text='%s' href='%s' >%s</a></h1>\n", what, link, page);
+ else if(link && what)
+ printf("<h1><a data-text='%s' href='%s/%s' >%s</a></h1>\n", what, base, link, page);
else
printf("<h1>%s</h1>\n", page);
}