use C4::Debug instead of checking DEBUG env var directly
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 1 Apr 2008 17:01:08 +0000 (12:01 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 3 Apr 2008 19:42:19 +0000 (14:42 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
circ/billing.pl
circ/pendingreserves.pl
circ/reserveratios.pl

index 346084a..a1586a7 100755 (executable)
@@ -24,14 +24,9 @@ use C4::Output;
 use CGI;
 use C4::Auth;
 use C4::Dates qw/format_date format_date_in_iso/;
+use C4::Debug;
 use Date::Calc qw/Today Add_Delta_YM/;
 
-use vars qw($debug);
-
-BEGIN {
-    $debug = $ENV{DEBUG} || 0;
-}
-
 my $input = new CGI;
 my $order = $input->param('order');
 my $startdate=$input->param('from');
index 7400638..b9fa6d9 100755 (executable)
@@ -29,14 +29,9 @@ use C4::Output;
 use CGI;
 use C4::Auth;
 use C4::Dates qw/format_date format_date_in_iso/;
+use C4::Debug;
 use Date::Calc qw/Today Add_Delta_YMD/;
 
-use vars qw($debug);
-
-BEGIN {
-    $debug = $ENV{DEBUG} || 0;
-}
-
 my $input = new CGI;
 my $order = $input->param('order');
 my $startdate=$input->param('from');
index d7fecbe..8523a1e 100755 (executable)
@@ -24,14 +24,9 @@ use C4::Output;
 use CGI;
 use C4::Auth;
 use C4::Dates qw/format_date format_date_in_iso/;
+use C4::Debug;
 use Date::Calc qw/Today Add_Delta_YM/;
 
-use vars qw($debug);
-
-BEGIN {
-    $debug = $ENV{DEBUG} || 0;
-}
-
 my $input = new CGI;
 my $order = $input->param('order');
 my $startdate=$input->param('from');