View | Details | Raw Unified | Return to bug 9174
Collapse All | Expand All

(-)a/C4/Koha.pm (-3 / +2 lines)
Lines 425-431 sub getframeworkinfo { Link Here
425
425
426
=head2 getitemtypeinfo
426
=head2 getitemtypeinfo
427
427
428
  $itemtype = &getitemtype($itemtype, [$interface]);
428
  $itemtype = &getitemtypeinfo($itemtype, [$interface]);
429
429
430
Returns information about an itemtype. The optional $interface argument
430
Returns information about an itemtype. The optional $interface argument
431
sets which interface ('opac' or 'intranet') to return the imageurl for.
431
sets which interface ('opac' or 'intranet') to return the imageurl for.
Lines 440-446 sub getitemtypeinfo { Link Here
440
    $sth->execute($itemtype);
440
    $sth->execute($itemtype);
441
    my $res = $sth->fetchrow_hashref;
441
    my $res = $sth->fetchrow_hashref;
442
442
443
    $res->{imageurl} = getitemtypeimagelocation( ( $interface eq 'opac' ? 'opac' : 'intranet' ), $res->{imageurl} );
443
    $res->{imageurl} = getitemtypeimagelocation( ( ( defined $interface && $interface eq 'opac' ) ? 'opac' : 'intranet' ), $res->{imageurl} );
444
444
445
    return $res;
445
    return $res;
446
}
446
}
447
- 

Return to bug 9174