]> git.decadent.org.uk Git - maypole.git/blob - debian/patches/103_fix-view_object-warning.diff
Add Vcs-* fields pointing to my public repository
[maypole.git] / debian / patches / 103_fix-view_object-warning.diff
1 --- maypole.orig/lib/Maypole.pm
2 +++ maypole/lib/Maypole.pm
3 @@ -496,13 +496,6 @@
4      return $self->NEXT::DISTINCT::get_template_root( $r, @_ );
5  }
6  
7 -sub view_object {
8 -    my $self = shift;
9 -    my $r    = shift;
10 -    return $r->parent->view_object if $r->{parent};
11 -    return $self->NEXT::DISTINCT::view_object( $r, @_ );
12 -}
13 -
14  # Instead of making plugin authors use the NEXT::DISTINCT hoopla to ensure other 
15  # plugins also get to call the hook, we can cycle through the application's 
16  # @ISA and call them all here. Doesn't work for setup() though, because it's