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:
Nick Clemens 2026-01-28 14:34:00 +00:00 committed by Lucas Gass
parent 84e0caae64
commit 7cdb17cc2f
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
3 changed files with 2 additions and 3 deletions

View File

@ -469,7 +469,6 @@ sub plugin_types_to_classes {
my ($self) = @_; my ($self) = @_;
unless ( exists $self->{_plugin_mapping} ) { unless ( exists $self->{_plugin_mapping} ) {
require Koha::Plugins;
my @plugins = Koha::Plugins->new()->GetPlugins( { method => 'background_tasks', } ); my @plugins = Koha::Plugins->new()->GetPlugins( { method => 'background_tasks', } );
foreach my $plugin (@plugins) { foreach my $plugin (@plugins) {

View File

@ -28,6 +28,7 @@ use Koha::Authority::Types;
use Koha::AuthorisedValueCategories; use Koha::AuthorisedValueCategories;
use Koha::Filter::MARC::ViewPolicy; use Koha::Filter::MARC::ViewPolicy;
use Koha::BiblioFrameworks; use Koha::BiblioFrameworks;
use Koha::Plugins;
use List::MoreUtils qw( uniq ); use List::MoreUtils qw( uniq );
@ -128,7 +129,6 @@ if ( $op eq 'add_form' ) {
# Add valuebuilders from plugins # Add valuebuilders from plugins
if ( C4::Context->config("enable_plugins") ) { if ( C4::Context->config("enable_plugins") ) {
require Koha::Plugins;
my $plugins = Koha::Plugins->new(); my $plugins = Koha::Plugins->new();
# Use the dedicated get_valuebuilders_installed method # Use the dedicated get_valuebuilders_installed method

View File

@ -44,6 +44,7 @@ use Koha;
use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::DateUtils qw( dt_from_string output_pref );
use Koha::Caches; use Koha::Caches;
use Koha::Installer::Output qw ( say_failure ); use Koha::Installer::Output qw ( say_failure );
use Koha::Plugins;
use MARC::Record; use MARC::Record;
use MARC::File::XML ( BinaryEncoding => 'utf8' ); use MARC::File::XML ( BinaryEncoding => 'utf8' );
@ -23035,7 +23036,6 @@ if ( CheckVersion($DBversion) ) {
); );
} }
require Koha::Plugins;
Koha::Plugins->new( { enable_plugins => 1 } )->InstallPlugins; Koha::Plugins->new( { enable_plugins => 1 } )->InstallPlugins;
SetVersion($DBversion); SetVersion($DBversion);