determining theme/language path
authorPaul POULAIN <paul@koha-fr.org>
Mon, 3 Sep 2007 12:48:48 +0000 (14:48 +0200)
committerChris Cormack <crc@liblime.com>
Mon, 3 Sep 2007 22:03:39 +0000 (17:03 -0500)
until the modules/structure has been ported to OPAC, this quick hack make the theme/language determination work for both OPAC & intranet

Signed-off-by: Chris Cormack <crc@liblime.com>
C4/Output.pm

index 5e39ecc..2518881 100644 (file)
@@ -82,7 +82,7 @@ sub gettemplate {
     my ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, $interface, $query );
     my $opacstylesheet = C4::Context->preference('opacstylesheet');
     my $template       = HTML::Template::Pro->new(
-        filename          => "$htdocs/$theme/$lang/modules/$tmplbase",
+        filename          => "$htdocs/$theme/$lang/".($interface eq 'intranet'?"modules":"")."/$tmplbase",
         die_on_bad_params => 1,
         global_vars       => 1,
         case_sensitive    => 1,