Merge remote-tracking branch 'origin/new/bug_929'

This commit is contained in:
Paul Poulain 2012-01-16 18:19:38 +01:00
commit 34a27e01b1

View file

@ -50,13 +50,18 @@ done_testing();
sub create_template_test {
my $includes = shift;
return sub {
my $tt = Template->new({ABSOLUTE => 1,
INCLUDE_PATH => $includes });
my $vars;
my $output;
if ( ! ok($tt->process($_,$vars,\$output), $_) ){
diag($tt->error);
}
my $tt = Template->new(
{
ABSOLUTE => 1,
INCLUDE_PATH => $includes,
PLUGIN_BASE => 'Koha::Template::Plugin',
}
);
my $vars;
my $output;
if ( !ok( $tt->process( $_, $vars, \$output ), $_ ) ) {
diag( $tt->error );
}
}
}