fixed subscription problem
This commit is contained in:
parent
df1a05168e
commit
0f2906fd46
2 changed files with 4 additions and 2 deletions
|
|
@ -8,6 +8,8 @@
|
|||
- Fixed bug [ 843591 ] Fatal error while creating a new Message Board if
|
||||
there are no Forums yet.
|
||||
- Fixed bug [ 844196 ] Time formats
|
||||
- Fixed a bug in the forum where new replies defaulted to always subscribing
|
||||
the user to the thread.
|
||||
|
||||
|
||||
5.5.1
|
||||
|
|
|
|||
|
|
@ -1773,7 +1773,7 @@ sub www_post {
|
|||
my ($subject, $message, $forum);
|
||||
my $var;
|
||||
$var->{'newpost.header'} = WebGUI::International::get(1064);
|
||||
$var->{'newpost.isNewThread'} = ($session{form}{forumId} ne "");
|
||||
$var->{'newpost.isNewThread'} = ($session{form}{parentId} eq "");
|
||||
$var->{'newpost.isReply'} = ($session{form}{parentId} ne "");
|
||||
$var->{'newpost.isEdit'} = ($session{form}{forumPostId} ne "");
|
||||
$var->{'user.isVisitor'} = ($session{user}{userId} == 1);
|
||||
|
|
@ -1803,7 +1803,6 @@ sub www_post {
|
|||
value=>$session{form}{forumId}
|
||||
});
|
||||
$forum = WebGUI::Forum->new($session{form}{forumId});
|
||||
return WebGUI::Privilege::insufficient unless ($forum->canPost);
|
||||
if ($forum->isModerator) {
|
||||
$var->{'sticky.label'} = WebGUI::International::get(1013);
|
||||
$var->{'sticky.form'} = WebGUI::Form::yesNo({
|
||||
|
|
@ -1815,6 +1814,7 @@ sub www_post {
|
|||
}
|
||||
if ($var->{'newpost.isNewMessage'}) {
|
||||
$var->{'subscribe.label'} = WebGUI::International::get(873);
|
||||
return WebGUI::Privilege::insufficient unless ($forum->canPost);
|
||||
if ($forum->isModerator) {
|
||||
$var->{'lock.label'} = WebGUI::International::get(1012);
|
||||
$var->{'lock.form'} = WebGUI::Form::yesNo({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue