Bug 8890: Koha::Borrower::Files shouldn't use db in BEGIN
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 16 Oct 2012 09:41:03 +0000 (05:41 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 24 Oct 2012 15:52:40 +0000 (17:52 +0200)
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 <chris@bigballofwax.co.nz>
Koha/Borrower/Files.pm

index 91a5463..d1660bb 100644 (file)
@@ -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