From: Kyle M Hall <[email protected]>

The functions getitemtypeimagedir and getitemtypeimagesrc
in Koha.pm were using the system preference 'template'
when they should be using 'opacthemes' instead.

Signed-off-by: Julian Maurice <[email protected]>
---
 C4/Koha.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/C4/Koha.pm b/C4/Koha.pm
index 976b46a..43bfdf5 100644
--- a/C4/Koha.pm
+++ b/C4/Koha.pm
@@ -452,7 +452,7 @@ sub getitemtypeimagedir {
        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';
+               return C4::Context->config('opachtdocs') . '/' . 
C4::Context->preference('opacthemes') . '/itemtypeimg';
        }
 }
 
@@ -461,7 +461,7 @@ sub getitemtypeimagesrc {
        if ($src eq 'intranet') {
                return '/intranet-tmpl' . '/' . 
C4::Context->preference('template') . '/img/itemtypeimg';
        } else {
-               return '/opac-tmpl' . '/' . C4::Context->preference('template') 
. '/itemtypeimg';
+               return '/opac-tmpl' . '/' . 
C4::Context->preference('opacthemes') . '/itemtypeimg';
        }
 }
 
-- 
1.7.9

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to