koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha fixBranches.pl,1.1,1.1.2.1


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha fixBranches.pl,1.1,1.1.2.1
Date: Thu, 03 Oct 2002 19:10:00 -0700

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

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


Index: fixBranches.pl
===================================================================
RCS file: /cvsroot/koha/koha/fixBranches.pl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** fixBranches.pl      21 Aug 2002 02:42:54 -0000      1.1
--- fixBranches.pl      4 Oct 2002 02:09:58 -0000       1.1.2.1
***************
*** 5,9 ****
  use strict;
  use DBI;
! use C4::Database;
  
  # This script makes the following substitutions.
--- 5,9 ----
  use strict;
  use DBI;
! use C4::Context;
  
  # This script makes the following substitutions.
***************
*** 44,48 ****
  
  # do the substitutions.....
! my $dbh = &C4Connect;           
  
  my $sth = $dbh->prepare("SELECT barcode, holdingbranch, homebranch FROM 
items");
--- 44,48 ----
  
  # do the substitutions.....
! my $dbh = C4::Context->dbh;
  
  my $sth = $dbh->prepare("SELECT barcode, holdingbranch, homebranch FROM 
items");
***************
*** 72,75 ****
  
  print "\nFinished output from fixbranches.pl\n";
- 
- $dbh->disconnect;
--- 72,73 ----




reply via email to

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