Permalink
Browse files

Update to recent subrequest

  • Loading branch information...
marcusramberg committed Aug 7, 2012
1 parent 6ef3946 commit f52d2941c0c2ddc59a1015563c622f0fbb26a19d
Showing with 7 additions and 3 deletions.
  1. +4 −0 Changes
  2. +1 −1 Makefile.PL
  3. +1 −1 lib/MojoMojo.pm
  4. +1 −1 lib/MojoMojo/Formatter/Include.pm
View
@@ -1,5 +1,9 @@
+1.05 2012-09-07 12:13
New features
- Simple yet effective anti-bot registration measure: signup question (dandv)
+
+ Bug fixes:
+ - Change include formatter to work with latest SubRequest
1.05 2011-09-14 04:20
View
@@ -24,7 +24,7 @@ requires(
'Catalyst::Plugin::Cache' => 0.08,
'Catalyst::Plugin::ConfigLoader' => '0.13',
'Catalyst::Plugin::I18N' => 0,
- 'Catalyst::Plugin::SubRequest' => '0.15',
+ 'Catalyst::Plugin::SubRequest' => '0.19',
'Catalyst::Plugin::Session::State::Cookie' => 0.11,
'Catalyst::Plugin::Session::Store::Cache' => '0',
'Catalyst::Plugin::Setenv' => 0,
View
@@ -31,7 +31,7 @@ use Module::Pluggable::Ordered
except => qr/^MojoMojo::Plugin::/,
require => 1;
-our $VERSION = '1.05';
+our $VERSION = '1.06';
use 5.008004;
MojoMojo->config->{authentication}{dbic} = {
@@ -80,7 +80,7 @@ sub include {
my $rel = $url->rel( $c->req->base );
if (not $rel->scheme) {
# if so, then return the inline version of the page is requests
- return $c->subreq( '/inline', { path => $rel.'' eq './' ? '/' : '/'.$rel } );
+ return $c->subreq( ($rel.'' eq './' ? '/' : '/'.$rel).'.inline' );
}
my $res = URI::Fetch->fetch( $url, Cache => $c->cache );
return $res->content if defined $res;

0 comments on commit f52d294

Please sign in to comment.