Bug 38384: (follow-up) move require Koha::Plugins to use
remaning ocurrences in test files seem okay, this covers the others Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
84e0caae64
commit
7cdb17cc2f
|
|
@ -469,7 +469,6 @@ sub plugin_types_to_classes {
|
|||
my ($self) = @_;
|
||||
|
||||
unless ( exists $self->{_plugin_mapping} ) {
|
||||
require Koha::Plugins;
|
||||
my @plugins = Koha::Plugins->new()->GetPlugins( { method => 'background_tasks', } );
|
||||
|
||||
foreach my $plugin (@plugins) {
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ use Koha::Authority::Types;
|
|||
use Koha::AuthorisedValueCategories;
|
||||
use Koha::Filter::MARC::ViewPolicy;
|
||||
use Koha::BiblioFrameworks;
|
||||
use Koha::Plugins;
|
||||
|
||||
use List::MoreUtils qw( uniq );
|
||||
|
||||
|
|
@ -128,7 +129,6 @@ if ( $op eq 'add_form' ) {
|
|||
|
||||
# Add valuebuilders from plugins
|
||||
if ( C4::Context->config("enable_plugins") ) {
|
||||
require Koha::Plugins;
|
||||
my $plugins = Koha::Plugins->new();
|
||||
|
||||
# Use the dedicated get_valuebuilders_installed method
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ use Koha;
|
|||
use Koha::DateUtils qw( dt_from_string output_pref );
|
||||
use Koha::Caches;
|
||||
use Koha::Installer::Output qw ( say_failure );
|
||||
use Koha::Plugins;
|
||||
|
||||
use MARC::Record;
|
||||
use MARC::File::XML ( BinaryEncoding => 'utf8' );
|
||||
|
|
@ -23035,7 +23036,6 @@ if ( CheckVersion($DBversion) ) {
|
|||
);
|
||||
}
|
||||
|
||||
require Koha::Plugins;
|
||||
Koha::Plugins->new( { enable_plugins => 1 } )->InstallPlugins;
|
||||
|
||||
SetVersion($DBversion);
|
||||
|
|
|
|||
Loading…
Reference in New Issue