From 8103c1fc1b2c27a6855feadf26f91b980a54bc52 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 2 Mar 2008 04:11:51 +0000 Subject: import rt 3.6.6 --- rt/lib/t/regression/00-mason-syntax.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rt/lib/t/regression/00-mason-syntax.t') diff --git a/rt/lib/t/regression/00-mason-syntax.t b/rt/lib/t/regression/00-mason-syntax.t index 96674cacf..a94c7efc1 100644 --- a/rt/lib/t/regression/00-mason-syntax.t +++ b/rt/lib/t/regression/00-mason-syntax.t @@ -25,6 +25,7 @@ find( { }, 'html'); ok($ok, "mason syntax is ok"); +use HTML::Mason; use HTML::Mason::Compiler; use HTML::Mason::Compiler::ToObject; @@ -36,7 +37,11 @@ sub compile_file { close $fh or die "couldn't close '$file': $!"; my $compiler = new HTML::Mason::Compiler::ToObject; - $compiler->compile( comp_source => $text, name => 'my' ); + $compiler->compile( + comp_source => $text, + name => 'my', + $HTML::Mason::VERSION >= 1.36? (comp_path => 'my'): (), + ); return 1; } -- cgit v1.2.1