From 4acfc05b68ecbbe30059bd96964b370b304b79c8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 12 Nov 2012 11:39:08 -0600 Subject: fix for new ox --- lib/OX/View/TT.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/OX/View/TT.pm b/lib/OX/View/TT.pm index dbee3e7..7fc3f0d 100644 --- a/lib/OX/View/TT.pm +++ b/lib/OX/View/TT.pm @@ -36,7 +36,7 @@ sub _build_template_params { return +{ base => $r->script_name, uri_for => sub { $r->uri_for(@_) }, - m => { $r->mapping }, + m => $r->mapping, %{ $params || {} } } } @@ -56,7 +56,7 @@ sub template { my $self = shift; my ($r) = @_; - my %params = $r->mapping; + my %params = %{ $r->mapping }; confess("Must supply a 'template' parameter") unless exists $params{template}; -- cgit v1.2.3-54-g00ecf