use Koha::DateUtils;
use Koha::Patron::Files;
+use Koha::Patron::Images;
my $cgi = CGI->new;
);
}
- my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'});
- $template->param( picture => 1 ) if $picture;
+ my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
+ $template->param( picture => 1 ) if $patron_image;
$template->param(
files => Koha::Patron::Files->new( borrowernumber => $borrowernumber )