From 8fa17e06dbbd9a2b4530011797ef7fb382ebb283 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 9 Jan 2011 23:17:51 -0500 Subject: [PATCH] Force wiki room views into the wiki viewer instead of a read loop --- webcit/messages.c | 21 +++++++++++++++++++++ webcit/wiki.c | 16 ++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/webcit/messages.c b/webcit/messages.c index f64667b87..a6cfc33d7 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1,5 +1,21 @@ /* * Functions which deal with the fetching and displaying of messages. + * + * Copyright (c) 1996-2011 by the citadel.org team + * + * This program is open source software. You can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "webcit.h" @@ -749,6 +765,11 @@ void readloop(long oper, eCustomRoomRenderer ForceRenderer) return; } + if (WCC->CurRoom.view == VIEW_WIKI) { + http_redirect("wiki?page=home"); + return; + } + memset(&Stat, 0, sizeof(SharedMessageStatus)); Stat.maxload = 10000; Stat.lowest_found = (-1); diff --git a/webcit/wiki.c b/webcit/wiki.c index ff4a45a27..79ade49e2 100644 --- a/webcit/wiki.c +++ b/webcit/wiki.c @@ -1,5 +1,21 @@ /* * Functions pertaining to rooms with a wiki view + * + * Copyright (c) 2009-2011 by the citadel.org team + * + * This program is open source software. You can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "webcit.h" -- 2.30.2