koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha charges.pl,1.2,1.3
Date: Sat, 05 Oct 2002 02:44:47 -0700

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

Modified Files:
        charges.pl 
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.


Index: charges.pl
===================================================================
RCS file: /cvsroot/koha/koha/charges.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** charges.pl  14 Aug 2002 18:12:50 -0000      1.2
--- charges.pl  5 Oct 2002 09:44:44 -0000       1.3
***************
*** 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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]