[Koha-cvs] CVS: koha/updater thesaurus_create.pl,1.2,1.3
Andrew Arensburger
arensb at users.sourceforge.net
Sat Oct 5 12:17:06 CEST 2002
Update of /cvsroot/koha/koha/updater
In directory usw-pr-cvs1:/tmp/cvs-serv31831/updater
Modified Files:
thesaurus_create.pl
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.
Index: thesaurus_create.pl
===================================================================
RCS file: /cvsroot/koha/koha/updater/thesaurus_create.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** thesaurus_create.pl 14 Aug 2002 18:12:54 -0000 1.2
--- thesaurus_create.pl 5 Oct 2002 10:17:04 -0000 1.3
***************
*** 23,27 ****
# with the data in bibliothesaurus
! use C4::Database;
use C4::Catalogue;
use DBI;
--- 23,27 ----
# with the data in bibliothesaurus
! use C4::Context;
use C4::Catalogue;
use DBI;
***************
*** 29,33 ****
use C4::Output;
! my $dbh=C4Connect;
sub dosql {
--- 29,33 ----
use C4::Output;
! my $dbh = C4::Context->dbh;
sub dosql {
***************
*** 54,57 ****
--- 54,58 ----
$sti->execute;
my $total = $sti->fetchrow_hashref;
+ # FIXME - There's already a $sti in this scope.
my $sti=$dbh->prepare("select subject from bibliosubject");
$sti->execute;
More information about the Koha-cvs
mailing list