]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
possible fix for components, added another test to MANIFEST
[maypole.git] / lib / Maypole.pm
index 64e5a1a886c877d8aa59475426ff63f7f9714070..59b519706c939f83fb774b16d685295fe88e5a4e 100644 (file)
@@ -487,8 +487,9 @@ You should not fully qualify the Maypole URLs.
 
 sub component {
     my ( $r, $path ) = @_;
-    my $self = bless { parent => $r }, ref $r;
+    my $self = bless { parent => $r, config => $r->{config} }, ref $r;
     my $url = URI->new($path);
+    warn "path : $path\n";
     $self->{path} = $url->path;
     $self->parse_path;
     $self->params( $url->query_form_hash );