Maypole::Session::generate_unique_id() now returns the id (bug 14124)
Implement -Init flag in Mp::Application (wishlist 14123)
add() alias to push() in Mp::Headers (wishlist 14142)
+ Fixed inheritance issues in Mp::Application - Mp::App now manipulates the caller's
+ @ISA directly, and doesn't inject itself into the chain (bugs 12923 & 14120)
2.10 Tue 19 Jul 2005
Multiple Template Paths added ( http://rt.cpan.org/NoAuth/Bug.html?id=13447 )
use Maypole;
use Maypole::Config;
-our @ISA;
our $VERSION = '2.11';
sub import {
- my ( $class, @plugins ) = @_;
+ shift; # not interested in this - we manipulate the caller's @ISA directly
+ my @plugins = @_;
my $caller = caller(0);
my $frontend = 'Apache::MVC' if $ENV{MOD_PERL};
$frontend ||= 'CGI::Maypole';
$frontend->require or die "Loading $frontend frontend failed: $@";
- # inheritance may already be set up in a multi-app mod_perl environment
- push @ISA, $frontend unless __PACKAGE__->isa( $frontend );
my $autosetup=0;
my $autoinit=0;
}
}
no strict 'refs';
- push @{"${caller}::ISA"}, @plugin_modules, $class;
+ push @{"${caller}::ISA"}, @plugin_modules, $frontend;
$caller->config(Maypole::Config->new);
$caller->config->masonx({}) if $masonx;
$caller->setup() if $autosetup;