From 55eb40f131d294d55e972606da0728b83e249062 Mon Sep 17 00:00:00 2001 From: David Jack Olrik Date: Thu, 6 Mar 2008 22:44:46 +0100 Subject: [PATCH] Always do concatenation of template_extension to component_path. If one sets a template explicitly via $c->stash->{template} the template_extension should still be added, so the same template name can be used with other views as well. --- lib/Catalyst/View/Mason.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Catalyst/View/Mason.pm b/lib/Catalyst/View/Mason.pm index d34eeaf..272e093 100644 --- a/lib/Catalyst/View/Mason.pm +++ b/lib/Catalyst/View/Mason.pm @@ -131,10 +131,10 @@ sub get_component_path { $component_path = $self->config->{use_match} ? $c->request->match : $c->action; - - $component_path .= $self->config->{template_extension}; } + $component_path .= $self->config->{template_extension}; + return $component_path; } -- 1.5.4.3