X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwiki.c;h=ef1a4441212dad909e6ee031dd6df87b11319364;hb=4b4dc864ede7c5d8d956febe4a0afb422b78e7c4;hp=6c8da5590b0465126d35a4da79ec5e81ce412fd7;hpb=fd034bea666febed8eff22cf10f2b72b8b009665;p=citadel.git diff --git a/webcit/wiki.c b/webcit/wiki.c index 6c8da5590..ef1a44412 100644 --- a/webcit/wiki.c +++ b/webcit/wiki.c @@ -19,7 +19,7 @@ */ #include "webcit.h" -#include "groupdav.h" +#include "dav.h" /* * Convert a string to something suitable as a wiki index @@ -365,13 +365,37 @@ int ConditionalHavewikiType(StrBuf *Target, WCTemplputParams *TP) } +int wiki_PrintHeaderPage(SharedMessageStatus *Stat, void **ViewSpecific) +{ + /* this function was intentionaly left empty. */ + return 0; +} + +int wiki_GetParamsGetServerCall(SharedMessageStatus *Stat, + void **ViewSpecific, + long oper, + char *cmd, + long len, + char *filter, + long flen) +{ + if (oper == do_search) + display_wiki_pagelist(); + else + http_redirect("wiki?page=home"); + + return 300; +} + + void InitModule_WIKI (void) { RegisterReadLoopHandlerset( VIEW_WIKI, - NULL, + wiki_GetParamsGetServerCall, + wiki_PrintHeaderPage, NULL, NULL, NULL,