From 36c0867ef702673229e0327483c600afe09ad042 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Tue, 16 Oct 2012 05:41:03 -0400 Subject: [PATCH] Bug 8890: Koha::Borrower::Files shouldn't use db in BEGIN This patch removes the usage of the database in Koha::Borrower::Files' BEGIN block. It also removes the export-related declarations, since they were unused, and unnecessary in a module called in an object-oriented fashion. Signed-off-by: Chris Cormack --- Koha/Borrower/Files.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Koha/Borrower/Files.pm b/Koha/Borrower/Files.pm index 91a5463..d1660bb 100644 --- a/Koha/Borrower/Files.pm +++ b/Koha/Borrower/Files.pm @@ -19,7 +19,7 @@ package Koha::Borrower::Files; use Modern::Perl; -use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); +use vars qw($VERSION); use C4::Context; use C4::Output; @@ -30,13 +30,6 @@ BEGIN { # set the version for version checking $VERSION = 0.01; - require Exporter; - @ISA = qw(Exporter); - @EXPORT = qw( - - ); - - my $debug = C4::Context->preference("DebugLevel"); } =head1 NAME -- 1.7.10.4