koha-cvs
[Top][All Lists]
Advanced

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

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


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

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 ----




reply via email to

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