[Koha-cvs] CVS: koha/misc fixrefs.pl,1.2,1.3

Andrew Arensburger arensb at users.sourceforge.net
Sat Oct 5 12:16:07 CEST 2002


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

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


Index: fixrefs.pl
===================================================================
RCS file: /cvsroot/koha/koha/misc/fixrefs.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** fixrefs.pl	14 Aug 2002 18:12:54 -0000	1.2
--- fixrefs.pl	5 Oct 2002 10:16:05 -0000	1.3
***************
*** 20,26 ****
  
  use strict;
! use C4::Database;
  
! my $dbh=C4Connect;
  my $count=0;
  my $query="Select * from biblioitems where itemtype='REF' or itemtype='TREF'";
--- 20,26 ----
  
  use strict;
! use C4::Context;
  
! my $dbh = C4::Context->dbh;
  my $count=0;
  my $query="Select * from biblioitems where itemtype='REF' or itemtype='TREF'";
***************
*** 35,39 ****
  }
  $sth->finish;
- 
- 
- $dbh->disconnect;
--- 35,36 ----





More information about the Koha-cvs mailing list