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 <chris@bigballofwax.co.nz> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
dbe5a88072
commit
e26aac835e
1 changed files with 1 additions and 1 deletions
|
@ -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'}):"",
|
||||
|
|
Loading…
Reference in a new issue