From: André Walker Date: Tue, 2 Aug 2011 18:12:15 +0000 (-0300) Subject: forgot quotes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=77843dec272fcc8422946a0b85ced37198dbe6f2 forgot quotes --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 0e0acd6..f36117b 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -616,11 +616,11 @@ sub _lookup_mvc { my ( $c, $type, $name, @args ) = @_; if (ref $c && !$name && $type ne 'controller') { - my $current_instance = $c->stash->{current_${type}_instance}; + my $current_instance = $c->stash->{"current_${type}_instance"}; return $current_instance if $current_instance; - $name = $c->stash->{current_${type}}; + $name = $c->stash->{"current_${type}"}; } $name ||= Catalyst::Utils::class2classshortsuffix($c->action->class);