[Koha-cvs] koha/opac opac-detail.pl [rel_2_2]

Joshua Ferraro jmf at kados.org
Wed Feb 8 18:01:01 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch: 	rel_2_2
Changes by:	Joshua Ferraro <kados at savannah.gnu.org>	06/02/08 17:01:01

Modified files:
	opac           : opac-detail.pl 

Log message:
	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.
	----------------------------------------------------------------------

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/opac/opac-detail.pl.diff?only_with_tag=rel_2_2&tr1=1.14.2.14&tr2=1.14.2.15&r1=text&r2=text

Patches:
Index: koha/opac/opac-detail.pl
diff -u koha/opac/opac-detail.pl:1.14.2.14 koha/opac/opac-detail.pl:1.14.2.15
--- koha/opac/opac-detail.pl:1.14.2.14	Sat Feb  4 16:47:21 2006
+++ koha/opac/opac-detail.pl	Wed Feb  8 17:01:01 2006
@@ -9,7 +9,6 @@
 use HTML::Template;
 use C4::Biblio;
 use C4::SearchMarc;
-use C4::Amazon;
 
 my $query=new CGI;
 my ($template, $borrowernumber, $cookie) 
@@ -98,6 +97,7 @@
 ## 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);
 





More information about the Koha-cvs mailing list