Sophie

Sophie

distrib > Mandriva > cs4.0 > i586 > by-pkgid > ba663ad53a798b2764c3d2bb9930d1f5 > files > 2

perl-Catalyst-View-TT-0.23-2mlcs4.src.rpm

--- lib/Catalyst/View/TT.pm	2006-04-26 16:30:47.000000000 +0200
+++ lib/Catalyst/View/TT.pm	2006-05-29 16:49:08.000000000 +0200
@@ -378,10 +378,12 @@ sub new {
     my $copy = $self;
     Scalar::Util::weaken($copy);
     $config->{INCLUDE_PATH} = [ sub { $copy->paths } ];
+
+    my $template_class = $config->{template_class} || 'Template';
     
     $self->{template} = 
-        Template->new($config) || do {
-            my $error = Template->error();
+        $template_class->new($config) || do {
+            my $error = $template_class->error();
             $c->log->error($error);
             $c->error($error);
             return undef;