[Koha-cvs] CVS: koha charges.pl,1.2,1.2.2.1

Andrew Arensburger arensb at users.sourceforge.net
Fri Oct 4 03:45:22 CEST 2002


Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv9268

Modified Files:
      Tag: arensb-context
	charges.pl 
Log Message:
Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
C4Connect.


Index: charges.pl
===================================================================
RCS file: /cvsroot/koha/koha/charges.pl,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -r1.2 -r1.2.2.1
*** charges.pl	14 Aug 2002 18:12:50 -0000	1.2
--- charges.pl	4 Oct 2002 01:45:20 -0000	1.2.2.1
***************
*** 24,29 ****
  use strict;
  use CGI;
  use C4::Output;
- use C4::Database;
  
  my $input = new CGI;
--- 24,29 ----
  use strict;
  use CGI;
+ use C4::Context;
  use C4::Output;
  
  my $input = new CGI;
***************
*** 35,39 ****
  eg 1,7,7 = $1 fine, after 7 days, every 7 days";
  
! my $dbh=C4Connect;
  my $query="Select description,categorycode from categories";
  my $sth=$dbh->prepare($query);
--- 35,39 ----
  eg 1,7,7 = $1 fine, after 7 days, every 7 days";
  
! my $dbh = C4::Context->dbh;
  my $query="Select description,categorycode from categories";
  my $sth=$dbh->prepare($query);





More information about the Koha-cvs mailing list