* work on the wiki parts of the navbar
[citadel.git] / webcit / wiki.c
index 141c7f578bbeaf326c07476f3943e652dbc90a9c..1bdd8c55da104b3419b9bc208f4e5403456f2569 100644 (file)
@@ -346,11 +346,12 @@ int ConditionalHaveWikiPage(StrBuf *Target, WCTemplputParams *TP)
 int ConditionalHavewikiType(StrBuf *Target, WCTemplputParams *TP)
 {
        wcsession *WCC = WC;
+       const char *pch;
+       long len;
 
-       return 1;
+       GetTemplateTokenString(TP, &pch, &len, 2);
+       return bmstrcasestr((char *)ChrPtr(WCC->Hdr->HR.ReqLine), pch);
 }
-
-
 void 
 InitModule_WIKI
 (void)