[Koha-cvs] CVS: koha stats2.pl,1.2,1.2.2.1
Andrew Arensburger
arensb at users.sourceforge.net
Fri Oct 4 04:21:28 CEST 2002
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 ----
More information about the Koha-cvs
mailing list