Bugfix to correct C4:Koha behavior which caused admin/itemtypes.pl to try to

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Cormack 2008-01-27 13:17:31 -06:00 committed by Joshua Ferraro
parent c6086ad8bc
commit 5ccfb0963c
1 changed files with 14 additions and 6 deletions

View File

@ -455,15 +455,23 @@ sub getitemtypeimagesrcfromurl {
}
sub getitemtypeimagedir {
return C4::Context->opachtdocs . '/'
. C4::Context->preference('template')
. '/itemtypeimg';
my $src = shift;
if ($src eq 'intranet') {
return C4::Context->config('intrahtdocs') . '/' .C4::Context->preference('template') . '/img/itemtypeimg';
}
else {
return C4::Context->config('opachtdocs') . '/' . C4::Context->preference('template') . '/itemtypeimg';
}
}
sub getitemtypeimagesrc {
return '/opac-tmpl' . '/'
. C4::Context->preference('template')
. '/itemtypeimg';
my $src = shift;
if ($src eq 'intranet') {
return '/intranet-tmpl' . '/' . C4::Context->preference('template') . '/img/itemtypeimg';
}
else {
return '/opac-tmpl' . '/' . C4::Context->preference('template') . '/itemtypeimg';
}
}
=head2 GetPrinters