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

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


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

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


Index: fixBranches.pl
===================================================================
RCS file: /cvsroot/koha/koha/fixBranches.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** fixBranches.pl	21 Aug 2002 02:42:54 -0000	1.1
--- fixBranches.pl	5 Oct 2002 09:45:07 -0000	1.2
***************
*** 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 ----





More information about the Koha-cvs mailing list