From 95e889bde59fe59c2e33af265fe3cec110918763 Mon Sep 17 00:00:00 2001 From: kados Date: Wed, 8 Feb 2006 17:01:01 +0000 Subject: [PATCH] moves the 'use C4::Amazon' line behind the 'if (AmazonContent) conditional to make sure folks don't load modules in Amazon.pm if they're not using it. Email to koha-devel on its way. ---------------------------------------------------------------------- --- opac/opac-detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 5782438d60..c3bb34d8f2 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -9,7 +9,6 @@ use C4::Interface::CGI::Output; use HTML::Template; use C4::Biblio; use C4::SearchMarc; -use C4::Amazon; my $query=new CGI; my ($template, $borrowernumber, $cookie) @@ -98,6 +97,7 @@ $template->param(BIBLIO_RESULTS => $resultsarray, ## Amazon.com stuff #not used unless preference set if (C4::Context->preference("AmazonContent")==1) { + use C4::Amazon; my $isbn=$dat->{'isbn'}; my $amazon_details = &get_amazon_details($isbn); -- 2.39.5