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:
parent
bf867d08c2
commit
d0bd802da6
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue