koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha stats2.pl,1.2,1.2.2.1


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha stats2.pl,1.2,1.2.2.1
Date: Thu, 03 Oct 2002 19:21:28 -0700

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

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


Index: stats2.pl
===================================================================
RCS file: /cvsroot/koha/koha/stats2.pl,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -r1.2 -r1.2.2.1
*** stats2.pl   14 Aug 2002 18:12:51 -0000      1.2
--- stats2.pl   4 Oct 2002 02:21:25 -0000       1.2.2.1
***************
*** 22,32 ****
  # Suite 330, Boston, MA  02111-1307 USA
  
- use C4::Stats;
  use strict;
  use Date::Manip;
  use CGI;
  use C4::Output;
  use DBI;
- use C4::Database;
  
  my $input=new CGI;
--- 22,32 ----
  # Suite 330, Boston, MA  02111-1307 USA
  
  use strict;
+ use C4::Context;
+ use C4::Stats;
  use Date::Manip;
  use CGI;
  use C4::Output;
  use DBI;
  
  my $input=new CGI;
***************
*** 60,64 ****
  $date2=UnixDate($date2,'%Y-%m-%d');
  
! my $dbh=C4Connect;
  my $query="select * 
  from accountlines,accountoffsets,borrowers where
--- 60,64 ----
  $date2=UnixDate($date2,'%Y-%m-%d');
  
! my $dbh = C4::Context->dbh;
  my $query="select * 
  from accountlines,accountoffsets,borrowers where
***************
*** 95,97 ****
  print endpage;
  $sth->finish;
- $dbh->disconnect;
--- 95,96 ----




reply via email to

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