content was not localized properly.
Marcus Ramberg [Thu, 27 Oct 2005 23:10:51 +0000 (23:10 +0000)]
Changes
META.yml
SubRequest.pm

diff --git a/Changes b/Changes
index 493361e..d7b4098 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
-Revision history for Perl extension Catalyst::Plugin::Static.
+Revision history for Perl extension Catalyst::Plugin::SubRequest
 
+0.09  2005-28-10 01:07:00 
+       - localize body rather than output, which is an alias
 0.08  2005-12-10 01:34:00 
        - patch to handle NEXT trouble.
 0.07  2005-08-01 12:08:00 
index df4e692..3e0d0ab 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,7 +1,7 @@
 # http://module-build.sourceforge.net/META-spec.html
 #XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
 name:         Catalyst-Plugin-SubRequest
-version:      0.08
+version:      0.09
 version_from: SubRequest.pm
 installdirs:  site
 requires:
index 5a26387..969b752 100644 (file)
@@ -2,7 +2,7 @@ package Catalyst::Plugin::SubRequest;
 
 use strict;
 
-our $VERSION = '0.08';
+our $VERSION = '0.09';
 
 
 =head1 NAME
@@ -43,7 +43,7 @@ sub sub_request {
 
     $path =~ s/^\///;
     local $c->{stash} = $stash || {};
-    local $c->res->{output} = undef;
+    local $c->res->{body} = undef;
     local $c->req->{arguments} = $c->req->{arguments};
     local $c->req->{action};
     local $c->req->{path};
@@ -57,7 +57,7 @@ sub sub_request {
     # FIXME: Hack until proper patch in NEXT.
     local $NEXT::NEXT{$c,'dispatch'};
     $c->dispatch();
-    return $c->res->output;
+    return $c->res->body;
 }
 
 =head1 SEE ALSO