diff options
author | the little girl <yui@blekksprut.net> | 2013-12-13 17:29:23 +0100 |
---|---|---|
committer | the little girl <yui@blekksprut.net> | 2013-12-13 17:29:23 +0100 |
commit | d1140db2972796f190b64d0b59698d44df4c23fd (patch) | |
tree | 5956699806a3bdf650d9dea2f8fd8c3b643d4c66 | |
parent | 0ec3fa9d81e2d43af6710c2c8299383e14e3fbe9 (diff) | |
download | ukulele-d1140db2972796f190b64d0b59698d44df4c23fd.tar.xz |
hack for å fikse namespacebug
-rw-r--r-- | wiki.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |