oodles of fixes.
This commit is contained in:
parent
029dca1f2e
commit
65823b1f53
38 changed files with 87 additions and 84 deletions
|
|
@ -292,7 +292,7 @@ sub www_view {
|
|||
return $self->www_edit;
|
||||
}
|
||||
my $storage = $self->getStorageLocation;
|
||||
WebGUI::HTTP::setRedirect($storage->getUrl($self->get("filename")));
|
||||
$self->session->http->setRedirect($storage->getUrl($self->get("filename")));
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -303,10 +303,10 @@ Web facing method which is the default view page. This method does a
|
|||
sub www_view {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->noAccess() unless $self->canView;
|
||||
if (WebGUI::Session::isAdminOn()) {
|
||||
if ($self->session->var->isAdminOn) {
|
||||
return $self->getContainer->www_view;
|
||||
}
|
||||
WebGUI::HTTP::setRedirect($self->getFileUrl($self->getValue("showPage")));
|
||||
$self->session->http->setRedirect($self->getFileUrl($self->getValue("showPage")));
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue