Switching CGI calls to a more Object Oriented sytax
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
c43eadf3c7
commit
5bd4181aaa
1 changed files with 2 additions and 2 deletions
|
@ -65,13 +65,13 @@ if ($dberror) {
|
||||||
# things will result... you have been warned!
|
# things will result... you have been warned!
|
||||||
|
|
||||||
if ($imagedata) {
|
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;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
warn "No image exists for $cardnumber" if $DEBUG;
|
warn "No image exists for $cardnumber" if $DEBUG;
|
||||||
my $urlbase = url(-base => 1 -rewrite => 1);
|
my $urlbase = url(-base => 1 -rewrite => 1);
|
||||||
warn "URL base: $urlbase" if $DEBUG;
|
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;
|
exit;
|
||||||
|
|
Loading…
Reference in a new issue