Correcting DEBUG var
authorChris Nighswonger <cnighswonger@foundations.edu>
Fri, 1 Feb 2008 00:27:02 +0000 (18:27 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 3 Feb 2008 13:23:46 +0000 (07:23 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
tools/picture-upload.pl

index 2203f5d..598ee26 100755 (executable)
@@ -7,7 +7,7 @@ use C4::Context;
 use C4::Auth;
 use C4::Output;
 
-my $DEBUG = 1;
+my $DEBUG = ($ENV{DEBUG}) ? 1 : 0;
 
 #my $destdir = "/usr/local/koha/intranet/htdocs/intranet-tmpl/images/patronpictures";
 #my $uploadfile = shift @ARGV;