[Koha-cvs] CVS: koha/maint shiftbib.pl,1.2,1.2.2.1

Andrew Arensburger arensb at users.sourceforge.net
Fri Oct 4 04:35:54 CEST 2002


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

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


Index: shiftbib.pl
===================================================================
RCS file: /cvsroot/koha/koha/maint/shiftbib.pl,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -r1.2 -r1.2.2.1
*** shiftbib.pl	14 Aug 2002 18:12:53 -0000	1.2
--- shiftbib.pl	4 Oct 2002 02:35:52 -0000	1.2.2.1
***************
*** 25,30 ****
  use strict;
  use CGI;
  use C4::Output;
- use C4::Database;
  use C4::Maintainance;
  
--- 25,30 ----
  use strict;
  use CGI;
+ use C4::Context;
  use C4::Output;
  use C4::Maintainance;
  
***************
*** 40,44 ****
  if ($type eq 'change'){
    my $biblionumber=$input->param('biblionumber');
!   my $dbh=C4Connect;
    my $query="Select * from biblio where biblionumber=$biblionumber";
    my $sth=$dbh->prepare($query);
--- 40,44 ----
  if ($type eq 'change'){
    my $biblionumber=$input->param('biblionumber');
!   my $dbh = C4::Context->dbh;
    my $query="Select * from biblio where biblionumber=$biblionumber";
    my $sth=$dbh->prepare($query);





More information about the Koha-cvs mailing list