Fixed a bug where isCurrentPost was not set correctly
This commit is contained in:
parent
014e40a005
commit
3b08bbf7af
3 changed files with 5 additions and 2 deletions
|
|
@ -1261,7 +1261,7 @@ sub www_showConfirmation {
|
|||
sub www_view {
|
||||
my $self = shift;
|
||||
$self->incrementViews;
|
||||
return $self->getThread->www_view;
|
||||
return $self->getThread->www_view($self);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1059,6 +1059,7 @@ Renders self->view based upon current style, subject to timeouts. Returns Privil
|
|||
|
||||
sub www_view {
|
||||
my $self = shift;
|
||||
my $currentPost = shift;
|
||||
return $self->session->privilege->noAccess() unless $self->canView;
|
||||
my $check = $self->checkView;
|
||||
return $check if (defined $check);
|
||||
|
|
@ -1068,7 +1069,7 @@ sub www_view {
|
|||
my $style = $self->getParent->processStyle("~~~");
|
||||
my ($head, $foot) = split("~~~",$style);
|
||||
$self->session->output->print($head,1);
|
||||
$self->session->output->print($self->view);
|
||||
$self->session->output->print($self->view($currentPost));
|
||||
$self->session->output->print($foot,1);
|
||||
return "chunked";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue