From e26aac835e705e857a3bc184b737b93dad1f21e9 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Wed, 27 Feb 2008 08:55:53 +1300 Subject: [PATCH] Adding value to tell getitemtypeimagesrc() where it was called from so that it returns the correct path to the image. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- catalogue/search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index ece25c01da..8ea778d437 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -221,7 +221,7 @@ my $itemtypes = GetItemTypes; my @itemtypesloop; my $selected=1; my $cnt; -my $imgdir = getitemtypeimagesrc(); +my $imgdir = getitemtypeimagesrc('intranet'); foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { my %row =( number=>$cnt++, imageurl=> $itemtypes->{$thisitemtype}->{'imageurl'}?($imgdir."/".$itemtypes->{$thisitemtype}->{'imageurl'}):"", -- 2.39.5