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

Andrew Arensburger arensb at users.sourceforge.net
Sat Oct 5 11:45:34 CEST 2002


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

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


Index: insertjdata.pl
===================================================================
RCS file: /cvsroot/koha/koha/insertjdata.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** insertjdata.pl	14 Aug 2002 18:12:51 -0000	1.2
--- insertjdata.pl	5 Oct 2002 09:45:32 -0000	1.3
***************
*** 24,28 ****
  
  use CGI;
! use C4::Database;
  use C4::Input;
  use Date::Manip;
--- 24,28 ----
  
  use CGI;
! use C4::Context;
  use C4::Input;
  use Date::Manip;
***************
*** 43,47 ****
    $data{$key}=$input->param($key);
  }
! my $dbh=C4Connect;
  
  for (my $i=0;$i<3;$i++){
--- 43,47 ----
    $data{$key}=$input->param($key);
  }
! my $dbh = C4::Context->dbh;
  
  for (my $i=0;$i<3;$i++){
***************
*** 99,102 ****
  $sth->finish;
  }
- $dbh->disconnect;
  print $input->redirect("/cgi-bin/koha/moremember.pl?bornum=$data{'borrowernumber'}");
--- 99,101 ----





More information about the Koha-cvs mailing list