Skip to content

Commit

Permalink
More $total fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Jul 28, 2017
1 parent 086596b commit b670bec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Virtualmin/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ sub run {
my @plugins = $self->_gather_plugins();
@plugins = $self->_order_plugins(@plugins);
my $total = $#plugins;
$log->info("Total plugins to be run: $total");
for (@plugins) {
my $pkg = "Virtualmin::Config::Plugin::$_";
load $pkg || die "Loading Plugin failed: $_";
my $plugin = $pkg->new( total => $total );
$plugin->actions($total);
my $plugin = $pkg->new( { total => $total } );
$plugin->actions();
if ($self->{test} && $plugin->can('tests')) {
$plugin->tests();
}
Expand Down

0 comments on commit b670bec

Please sign in to comment.