Changed behavior of Image assets when admin mode is on so that browsing to an images url no longer takes you to the assets edit screen, but rather to the image it's self.
This commit is contained in:
parent
abc0f1d91f
commit
c7a4c73e6b
2 changed files with 1 additions and 3 deletions
|
|
@ -307,9 +307,6 @@ A web executable method that redirects the user to the specified page, or displa
|
|||
|
||||
sub www_view {
|
||||
my $self = shift;
|
||||
if ($self->session->var->get("adminOn")) {
|
||||
return $self->www_edit;
|
||||
}
|
||||
my $storage = $self->getStorageLocation;
|
||||
$self->session->http->setRedirect($storage->getUrl($self->get("filename")));
|
||||
$self->session->http->setStreamedFile($storage->getPath($self->get("filename")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue