From d587341d3401f5c165b221f1850360f3b10224dc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 20 Sep 2021 14:25:48 +0200 Subject: [PATCH] Bug 17600: Remove wrong C4::Context imports Signed-off-by: Jonathan Druart --- Koha/Hold.pm | 2 +- Koha/Template/Plugin/TablesSettings.pm | 2 +- misc/translator/LangInstaller.pm | 2 +- t/lib/Mocks.pm | 2 +- t/lib/Selenium.pm | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Koha/Hold.pm b/Koha/Hold.pm index 0aa9eab133..26c41d7924 100644 --- a/Koha/Hold.pm +++ b/Koha/Hold.pm @@ -23,7 +23,7 @@ use Modern::Perl; use Data::Dumper qw( Dumper ); use List::MoreUtils qw( any ); -use C4::Context qw(preference); +use C4::Context; use C4::Letters qw( GetPreparedLetter EnqueueLetter ); use C4::Log qw( logaction ); diff --git a/Koha/Template/Plugin/TablesSettings.pm b/Koha/Template/Plugin/TablesSettings.pm index 4e61e8814f..25df84e0ae 100644 --- a/Koha/Template/Plugin/TablesSettings.pm +++ b/Koha/Template/Plugin/TablesSettings.pm @@ -56,7 +56,7 @@ use base qw( Template::Plugin ); use JSON qw( to_json ); -use C4::Context qw( config ); +use C4::Context; use C4::Utils::DataTables::TablesSettings; =head1 FUNCTIONS diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index 772c876fb3..df4d293a56 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -19,7 +19,7 @@ package LangInstaller; use Modern::Perl; -use C4::Context qw( config preference new interface ); +use C4::Context; # WARNING: Any other tested YAML library fails to work properly in this # script content # FIXME Really? diff --git a/t/lib/Mocks.pm b/t/lib/Mocks.pm index 97eb545ebd..0eaf2106bc 100644 --- a/t/lib/Mocks.pm +++ b/t/lib/Mocks.pm @@ -16,7 +16,7 @@ package t::lib::Mocks; # along with Koha; if not, see . use Modern::Perl; -use C4::Context qw( config new preference userenv _new_userenv set_userenv ); +use C4::Context; use Test::MockModule; use Test::MockObject; diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm index 8e235e94a7..3833deab4e 100644 --- a/t/lib/Selenium.pm +++ b/t/lib/Selenium.pm @@ -19,7 +19,7 @@ package t::lib::Selenium; use Modern::Perl; use Carp qw( croak ); -use C4::Context qw( new config preference interface ); +use C4::Context; use base qw(Class::Accessor); __PACKAGE__->mk_accessors(qw(login password base_url opac_base_url selenium_addr selenium_port driver)); -- 2.39.5