[Koha-cvs] CVS: koha fixBranches.pl,1.1,1.1.2.1
Andrew Arensburger
arensb at users.sourceforge.net
Fri Oct 4 04:10:00 CEST 2002
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 ----
More information about the Koha-cvs
mailing list