]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomops.c
* When entering a wiki room, display the wiki home page using the view render API...
[citadel.git] / webcit / roomops.c
index 2810dd00104a6659f04a7be22102abc2d7417730..f40d9cf99e4683c052e492a8baa34b3f5f25dc6a 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "webcit.h"
 #include "webserver.h"
-#include "roomops.h"
 #define MAX_FLOORS 128
 
 char floorlist[MAX_FLOORS][SIZ];       /* list of our floor names */
@@ -651,6 +650,9 @@ void embed_room_banner(char *got, int navbar_style) {
                                break;
                        case VIEW_WIKI:
                                safestrncpy(buf, bstr("page"), sizeof buf);
+                               if (IsEmptyStr(buf)) {
+                                       safestrncpy(buf, "home", sizeof buf);
+                               }
                                str_wiki_index(buf);
                                wprintf(
                                        "<li class=\"newmess\">"