[Koha-cvs] CVS: koha pay.pl,1.4,1.5

Andrew Arensburger arensb at users.sourceforge.net
Sat Oct 5 11:46:29 CEST 2002


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

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


Index: pay.pl
===================================================================
RCS file: /cvsroot/koha/koha/pay.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** pay.pl	14 Aug 2002 18:12:51 -0000	1.4
--- pay.pl	5 Oct 2002 09:46:27 -0000	1.5
***************
*** 23,33 ****
  
  use strict;
  use C4::Output;
  use CGI;
  use C4::Search;
  use C4::Accounts2;
- 
- use C4::Database;
  use C4::Stats;
  my $input=new CGI;
  
--- 23,33 ----
  
  use strict;
+ use C4::Context;
  use C4::Output;
  use CGI;
  use C4::Search;
  use C4::Accounts2;
  use C4::Stats;
+ 
  my $input=new CGI;
  
***************
*** 179,183 ****
      $user=~ s/Foxton/F/;
      $user=~ s/Shannon/S/;
!     my $dbh=C4Connect;
      my $env;
      my $query="Update accountlines set amountoutstanding=0 where ";
--- 179,183 ----
      $user=~ s/Foxton/F/;
      $user=~ s/Shannon/S/;
!     my $dbh = C4::Context->dbh;
      my $env;
      my $query="Update accountlines set amountoutstanding=0 where ";
***************
*** 203,207 ****
      $sth->finish;
  #  print $query;
-     $dbh->disconnect;
      UpdateStats($env,$user,'writeoff',$amount,'','','',$bornum);
  }
--- 203,206 ----





More information about the Koha-cvs mailing list