diff --git a/lib/Virtualmin/Config.pm b/lib/Virtualmin/Config.pm index 2dc5e06..1e75dbd 100644 --- a/lib/Virtualmin/Config.pm +++ b/lib/Virtualmin/Config.pm @@ -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(); }