More cleanup from dispatch. Do not set the session asset if the requested URL does not exist. In RssFeed, pass the fragment to the next method. Fixes bug #11854.
This commit is contained in:
parent
ef6e78fc27
commit
e99ae4740f
5 changed files with 30 additions and 6 deletions
|
|
@ -81,6 +81,7 @@ sub dispatch {
|
|||
return $output if defined $output;
|
||||
}
|
||||
}
|
||||
$session->clearAsset;
|
||||
if ($session->var->isAdminOn) {
|
||||
my $asset = WebGUI::Asset->newByUrl($session, $session->url->getRefererUrl) || WebGUI::Asset->getDefault($session);
|
||||
return $asset->addMissing($assetUrl);
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ sub dispatch {
|
|||
elsif ($fragment eq '.rdf') {
|
||||
return $self->www_viewRdf;
|
||||
}
|
||||
return $self->next::method();
|
||||
return $self->next::method($fragment);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -153,6 +153,18 @@ sub cache {
|
|||
$self->{_cache} = $cache;
|
||||
}
|
||||
return $self->{_cache};
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 clearAsset ( )
|
||||
|
||||
Clears out the session asset.
|
||||
|
||||
=cut
|
||||
|
||||
sub clearAsset {
|
||||
my $self = shift;
|
||||
$self->{_asset} = undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue