[Catalyst-commits] r6768 -
trunk/Catalyst-View-Mason/lib/Catalyst/View
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Tue Aug 28 16:59:36 GMT 2007
Author: rafl
Date: 2007-08-28 16:59:36 +0100 (Tue, 28 Aug 2007)
New Revision: 6768
Modified:
trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
Log:
Minor cleanups.
Modified: trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
===================================================================
--- trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm 2007-08-28 15:59:32 UTC (rev 6767)
+++ trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm 2007-08-28 15:59:36 UTC (rev 6768)
@@ -112,11 +112,12 @@
sub process {
my ($self, $c) = @_;
- my $component_path = $c->stash->{template} || ($self->config->{use_match} ? $c->request->match : $c->action);
-
+ my $component_path = $c->stash->{template};
+
unless ($component_path) {
- $c->log->debug('No Mason component specified for rendering') if $c->debug;
- return 0;
+ $component_path = $self->config->{use_match}
+ ? $c->request->match
+ : $c->action;
}
my $output = $self->render($c, $component_path);
More information about the Catalyst-commits
mailing list