Bug 42374: Restore require Koha::Plugins (instead of use)

See comment 4 for a detail explanation of the problem.

Test plan:
hit /cgi-bin/koha/installer/install.pl
login with the DB credentials
upgrade
=> Without this patch you get
```
ISBN_RANGE_MESSAGE is set to [] but that file does not exist!
Trying to use the default locations
```
=> With this patch applied: "Everything went okay. Update done."

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-04-16 09:15:56 +02:00 committed by Lucas Gass
parent bf867d08c2
commit d0bd802da6
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,6 @@ 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' );
@ -23041,6 +23040,7 @@ if ( CheckVersion($DBversion) ) {
);
}
require Koha::Plugins;
Koha::Plugins->new( { enable_plugins => 1 } )->InstallPlugins;
SetVersion($DBversion);