koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/C4 Security.pm,1.3,1.4


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha/C4 Security.pm,1.3,1.4
Date: Sat, 05 Oct 2002 02:53:02 -0700

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

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


Index: Security.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Security.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Security.pm 14 Aug 2002 18:12:52 -0000      1.3
--- Security.pm 5 Oct 2002 09:53:00 -0000       1.4
***************
*** 22,26 ****
  require Exporter;
  use DBI;
! use C4::Database;
  use C4::Format;
  use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
--- 22,26 ----
  require Exporter;
  use DBI;
! use C4::Context;
  use C4::Format;
  use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
***************
*** 34,38 ****
  sub Login {
    my ($env)address@hidden;
!   my $dbh=C4Connect;
    my @branches;
    my $query = "select * from branches order by branchname";
--- 34,38 ----
  sub Login {
    my ($env)address@hidden;
!   my $dbh = C4::Context->dbh;
    my @branches;
    my $query = "select * from branches order by branchname";
***************
*** 71,75 ****
      $sth->finish;
    }
-   $dbh->disconnect;
    &endint();
  }
--- 71,74 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]