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;