From 33ebc33588e4c18c898f5c61ce44f98b6f49d23e Mon Sep 17 00:00:00 2001 From: genjimoto Date: Mon, 22 Aug 2005 04:18:31 +0000 Subject: [PATCH] Added picture displaying code. If member picture exists in intranet-tmpl/borrowerimages/ (ie if bornum is 1, then its picture will be 1.jpg) then display. --- members/moremember.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/members/moremember.pl b/members/moremember.pl index a841e1f563..62409157b8 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -212,7 +212,13 @@ foreach (@$alerts) { $_->{$_->{type}}=1; $_->{relatedto} = findrelatedto($_->{type},$_->{externalid}); } - +my $picture; +my $htdocs = C4::Context->config('intrahtdocs'); +$picture = "/borrowerimages/".$bornum.".jpg"; +if (-e $htdocs."$picture") +{ + $template->param(picture => $picture) +}; $template->param($data); $template->param( bornum => $bornum, -- 2.39.5