diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 40c925bf9b..7d7b7bb4df 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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);