use C4::Overdues;
use C4::Branch;
use C4::Members::Attributes qw(GetBorrowerAttributes);
+use Koha::Patron::Images;
our $input = CGI->new;
$template->param(%$borrower);
- my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
- $template->param( picture => 1 ) if $picture;
+ my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber});
+ $template->param( picture => 1 ) if $patron_image;
$template->param(
accounts => $accounts,
borrower => $borrower,
$b_ref->{adultborrower} = 1;
}
- my ( $picture, $dberror ) = GetPatronImage( $b_ref->{borrowernumber} );
- if ($picture) {
- $b_ref->{has_picture} = 1;
- }
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
$b_ref->{extendedattributes} = GetBorrowerAttributes($borrowernumber);
$template->param(