Skip Menu |

This queue is for tickets about the Catalyst-View-XSLT CPAN distribution.

Report information
The Basics
Id: 44783
Status: resolved
Priority: 0/
Queue: Catalyst-View-XSLT

People
Owner: Nobody in particular
Requestors: PEPL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07
Fixed in: (no value)



render() will croak with "Can't call method "isa" without a package or object reference at ..XSLT.pm line 228." if passed template is a filename. Attached patch should fix this.
Subject: XSLT.pm-templatecheckfix.diff
--- XSLT.pm-0.07 2009-04-03 16:13:13.000000000 +0200 +++ XSLT.pm 2009-04-03 16:13:22.000000000 +0200 @@ -225,7 +225,7 @@ my ( $self, $c, $template, $args ) = @_; my $basePath; - unless ( $template =~ m/\</ || $template->isa('GLOB') || -e $template || + unless ( $template =~ m/\</ || (ref($template) && $template->isa('GLOB')) || -e $template || ( ref($template) && !$template->isa('Path::Class::File') ) ) { my $error;
Fixed in SVN: http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=9659 I'll add some tests too prior the next release, which should follow soon. Thanks and regards, Simon