Switching CGI calls to a more Object Oriented sytax
authorChris Nighswonger <cnighswonger@foundations.edu>
Wed, 27 Feb 2008 20:08:24 +0000 (09:08 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 28 Feb 2008 13:58:47 +0000 (07:58 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
members/patronimage.pl

index bc9b14f..2ee992f 100755 (executable)
@@ -65,13 +65,13 @@ if ($dberror) {
 # things will result... you have been warned!
 
 if ($imagedata) {
-    print header (-type => $imagedata->{'mimetype'}, -Content_Length => length ($imagedata->{'imagefile'})), $imagedata->{'imagefile'};
+    print $data->header (-type => $imagedata->{'mimetype'}, -Content_Length => length ($imagedata->{'imagefile'})), $imagedata->{'imagefile'};
     exit;
 } else {
     warn "No image exists for $cardnumber" if $DEBUG;
     my $urlbase = url(-base => 1 -rewrite => 1);
     warn "URL base: $urlbase" if $DEBUG;
-    print redirect (-uri => "$urlbase/intranet-tmpl/prog/img/patron-blank.png");
+    print $data->redirect (-uri => "$urlbase/intranet-tmpl/prog/img/patron-blank.png");
 }
 
 exit;