[Catalyst-commits] r12382 -
trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Tue Dec 15 01:44:33 GMT 2009
Author: t0m
Date: 2009-12-15 01:44:32 +0000 (Tue, 15 Dec 2009)
New Revision: 12382
Modified:
trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm
Log:
Fix bug, use go instead of forward
Modified: trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm
===================================================================
--- trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm 2009-12-15 01:37:34 UTC (rev 12381)
+++ trunk/examples/CatalystAdvent/lib/CatalystAdvent/Controller/Calendar.pm 2009-12-15 01:44:32 UTC (rev 12382)
@@ -112,7 +112,7 @@
sub rss : Chained('base') Args() {
my ( $self, $c, $year ) = @_;
- $c->forward('feed', $year );
+ $c->go('feed', [$year] );
}
=head2 feed
@@ -123,8 +123,8 @@
sub feed : Chained('base') Args() {
my ( $self, $c, $year ) = @_;
+ $year ||= $c->stash->{now}->year;
$c->detach( '/calendar/index' ) unless $year =~ /^\d{4}$/;
- $year ||= $c->stash->{now}->year;
$c->res->redirect( $c->uri_for('/') )
unless ( -e $c->path_to( 'root', $year ) );
More information about the Catalyst-commits
mailing list