Change to allow scripts to find OPAC templates in their new location
authorOwen Leonard <oleonard@myacpl.org>
Tue, 13 Nov 2007 22:20:36 +0000 (16:20 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 14 Nov 2007 03:35:44 +0000 (21:35 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Output.pm

index d4ae30f..f59648e 100644 (file)
@@ -81,7 +81,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/".($interface eq 'intranet'?"modules":"")."/$tmplbase",
+        filename          => "$htdocs/$theme/$lang/modules/$tmplbase",
         die_on_bad_params => 1,
         global_vars       => 1,
         case_sensitive    => 1,