add Gallery to test_content and fix problems with RssFeed role

This commit is contained in:
Doug Bell 2011-04-25 15:53:55 -05:00
parent ebdf0c28a3
commit bdb803915e
5 changed files with 109 additions and 30 deletions

View file

@ -129,8 +129,8 @@ Extent the base method in Asset.pm to handle RSS feeds.
=cut
sub dispatch {
my ( $self, $fragment ) = @_;
around dispatch => sub {
my ( $orig, $self, $fragment ) = @_;
if ($fragment eq '.rss') {
return $self->www_viewRss;
}
@ -140,8 +140,8 @@ sub dispatch {
elsif ($fragment eq '.rdf') {
return $self->www_viewRdf;
}
return $self->next::method($fragment);
}
return $self->$orig($fragment);
};
#-------------------------------------------------------------------