summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-11-12 11:39:08 -0600
committerJesse Luehrs <doy@tozt.net>2012-11-12 11:39:08 -0600
commit4acfc05b68ecbbe30059bd96964b370b304b79c8 (patch)
treeeaba53fde82baf83c20d82aadc49b1b55090d0bd
parent1ae483c1b1a0e602a178fa7ee8b646ac37f4e252 (diff)
downloadox-view-tt-4acfc05b68ecbbe30059bd96964b370b304b79c8.tar.gz
ox-view-tt-4acfc05b68ecbbe30059bd96964b370b304b79c8.zip
fix for new ox
-rw-r--r--lib/OX/View/TT.pm4
1 files changed, 2 insertions, 2 deletions
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};