From 016a4d556c93636c73b7268daa58bef809a7c6d5 Mon Sep 17 00:00:00 2001 From: "Stefan Hornburg (Racke)" Date: Sat, 12 Mar 2011 16:39:19 +0100 Subject: [PATCH] Allow scoped and simple variables to coexist with each other. --- lib/Template/Zoom.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Template/Zoom.pm b/lib/Template/Zoom.pm index 460d764..8395a5a 100644 --- a/lib/Template/Zoom.pm +++ b/lib/Template/Zoom.pm @@ -306,6 +306,9 @@ sub value { if (exists $value->{scope}) { $raw_value = $self->{values}->{$value->{scope}}->{$value->{name}}; } + else { + $raw_value = $self->{values}->{$value->{name}}; + } } else { $raw_value = $self->{values}->{$value->{name}};