continued working on new discussion system

This commit is contained in:
JT Smith 2003-07-20 20:47:27 +00:00
parent d91076b715
commit 1ee90115c6
5 changed files with 292 additions and 17 deletions

View file

@ -14,6 +14,7 @@ use strict;
use Tie::CPHash;
use WebGUI::Attachment;
use WebGUI::DateTime;
use WebGUI::Forum::Web;
use WebGUI::HTML;
use WebGUI::HTMLForm;
use WebGUI::Icon;
@ -190,7 +191,11 @@ sub www_view {
$var{"post.URL"} = WebGUI::URL::page('func=post&mid=new&wid='.$_[0]->get("wobjectId"));
$var{"post.label"} = WebGUI::International::get(24,$_[0]->get("namespace"));
}
return $_[0]->processTemplate($_[0]->getValue("templateId"),\%var);
if ($session{form}{forumOp}) {
return WebGUI::Forum::Web::forumOp(WebGUI::URL::page("func=view&wid=".$_[0]->get("wobjectId")));
} else {
return $_[0]->processTemplate($_[0]->getValue("templateId"),\%var).WebGUI::Forum::Web::viewForum(WebGUI::URL::page("func=view&wid=".$_[0]->get("wobjectId")),1);
}
}