/*
- * $Id: $
+ * $Id$
*/
/**
*
* \defgroup Wiki Wiki; Functions pertaining to rooms with a wiki view
- *
+ * \ingroup WebcitDisplayItems
*/
/*@{*/
#include "webcit.h"
+#include "groupdav.h"
safestrncpy(pagename, bstr("page"), sizeof pagename);
str_wiki_index(pagename);
- if (strlen(roomname) > 0) {
+ if (!IsEmptyStr(roomname)) {
/* If we're not in the correct room, try going there. */
if (strcasecmp(roomname, WC->wc_roomname)) {
return;
}
- if (strlen(pagename) == 0) {
+ if (IsEmptyStr(pagename)) {
strcpy(pagename, "home");
}
wprintf("<br><b>");
wprintf(_("There is no page called '%s' here."), pagename);
wprintf("</b><br><br>");
- wprintf("<a href=\"display_enter?wikipage=%s\">", pagename);
- wprintf(_("Click here if you would like to create this page."));
- wprintf("</a>");
+ wprintf(_("Select the 'Edit this page' link in the room banner "
+ "if you would like to create this page."));
wprintf("<br><br>");
wprintf("</td></tr></table></div>\n");
wDumpContent(1);