From 658f603511e119fbcfa3d2581c804d0a0edd985f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 7 Sep 2016 11:58:05 +0100 Subject: [PATCH] Bug 17189: Replace occurrences of 'use Koha::Cache' Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=11921 Signed-off-by: Kyle M Hall --- C4/Biblio.pm | 2 +- C4/Calendar.pm | 2 +- C4/External/OverDrive.pm | 2 +- C4/Koha.pm | 2 +- C4/Utils/DataTables/ColumnsSettings.pm | 2 +- Koha/Calendar.pm | 2 +- admin/biblio_framework.pl | 2 +- admin/marctagstructure.pl | 2 +- opac/svc/report | 2 +- svc/report | 2 +- t/Calendar.t | 2 +- t/db_dependent/Filter_MARC_ViewPolicy.t | 2 +- tools/newHolidays.pl | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 8865daacd6..04a6353f52 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -39,7 +39,7 @@ use C4::Linker; use C4::OAI::Sets; use C4::Debug; -use Koha::Cache; +use Koha::Caches; use Koha::Authority::Types; use Koha::Acquisition::Currencies; use Koha::SearchEngine; diff --git a/C4/Calendar.pm b/C4/Calendar.pm index 18a23ababb..2c1b0d8924 100644 --- a/C4/Calendar.pm +++ b/C4/Calendar.pm @@ -23,7 +23,7 @@ use Carp; use Date::Calc qw( Date_to_Days Today); use C4::Context; -use Koha::Cache; +use Koha::Caches; use constant ISO_DATE_FORMAT => "%04d-%02d-%02d"; diff --git a/C4/External/OverDrive.pm b/C4/External/OverDrive.pm index 1093a1b12a..9044169b59 100644 --- a/C4/External/OverDrive.pm +++ b/C4/External/OverDrive.pm @@ -22,7 +22,7 @@ use warnings; use Koha; use JSON; -use Koha::Cache; +use Koha::Caches; use HTTP::Request; use HTTP::Request::Common; use LWP::Authen::Basic; diff --git a/C4/Koha.pm b/C4/Koha.pm index d82ad1e11b..e2d43b03e8 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -25,7 +25,7 @@ use strict; use C4::Context; use C4::Branch; # Can be removed? -use Koha::Cache; +use Koha::Caches; use Koha::DateUtils qw(dt_from_string); use Koha::Libraries; use DateTime::Format::MySQL; diff --git a/C4/Utils/DataTables/ColumnsSettings.pm b/C4/Utils/DataTables/ColumnsSettings.pm index 9e838d6ef9..8713489b0c 100644 --- a/C4/Utils/DataTables/ColumnsSettings.pm +++ b/C4/Utils/DataTables/ColumnsSettings.pm @@ -5,7 +5,7 @@ use List::Util qw( first ); use YAML; use C4::Context; use Koha::Database; -use Koha::Cache; +use Koha::Caches; sub get_yaml { my $yml_path = C4::Context->config('intranetdir') . '/admin/columns_settings.yml'; diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index 4b48ae2e69..0065044fb0 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -7,7 +7,7 @@ use DateTime; use DateTime::Set; use DateTime::Duration; use C4::Context; -use Koha::Cache; +use Koha::Caches; use Carp; sub new { diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl index 57839b99f2..dd4af97597 100755 --- a/admin/biblio_framework.pl +++ b/admin/biblio_framework.pl @@ -26,7 +26,7 @@ use C4::Output; use Koha::Biblios; use Koha::BiblioFramework; use Koha::BiblioFrameworks; -use Koha::Cache; +use Koha::Caches; my $input = new CGI; my $frameworkcode = $input->param('frameworkcode') || q||; diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index 3ea47ed24b..784fb502e7 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -27,7 +27,7 @@ use C4::Context; use C4::Output; use C4::Context; -use Koha::Cache; +use Koha::Caches; # retrieve parameters my $input = new CGI; diff --git a/opac/svc/report b/opac/svc/report index 9cc21a3fb9..d2f953dc9e 100755 --- a/opac/svc/report +++ b/opac/svc/report @@ -27,7 +27,7 @@ use C4::Reports::Guided; use JSON; use CGI qw ( -utf8 ); -use Koha::Cache; +use Koha::Caches; my $query = CGI->new(); my $report_id = $query->param('id'); diff --git a/svc/report b/svc/report index c7e4053d8e..8a8bc264fd 100755 --- a/svc/report +++ b/svc/report @@ -25,7 +25,7 @@ use C4::Reports::Guided; use JSON; use CGI qw ( -utf8 ); -use Koha::Cache; +use Koha::Caches; my $query = CGI->new(); diff --git a/t/Calendar.t b/t/Calendar.t index 75637538dc..3082271b06 100755 --- a/t/Calendar.t +++ b/t/Calendar.t @@ -22,7 +22,7 @@ use Test::MockModule; use DateTime; use DateTime::Duration; -use Koha::Cache; +use Koha::Caches; use Koha::DateUtils; use Module::Load::Conditional qw/check_install/; diff --git a/t/db_dependent/Filter_MARC_ViewPolicy.t b/t/db_dependent/Filter_MARC_ViewPolicy.t index 709aea9d27..ab82632a43 100644 --- a/t/db_dependent/Filter_MARC_ViewPolicy.t +++ b/t/db_dependent/Filter_MARC_ViewPolicy.t @@ -30,7 +30,7 @@ use MARC::Record; use MARC::Field; use C4::Context; use C4::Biblio; -use Koha::Cache qw/flush_all/; +use Koha::Caches; use Koha::Database; BEGIN { diff --git a/tools/newHolidays.pl b/tools/newHolidays.pl index f36f0e0e1b..822867c260 100755 --- a/tools/newHolidays.pl +++ b/tools/newHolidays.pl @@ -10,7 +10,7 @@ use CGI qw ( -utf8 ); use C4::Auth; use C4::Output; -use Koha::Cache; +use Koha::Caches; use C4::Calendar; use DateTime; -- 2.39.5