From 82f0fee5c8c0ad53fda576074ffc2cc08bc28dc1 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 10 Apr 2011 22:55:55 +1200 Subject: [PATCH] Bug 5917 : Fixing a bug with switching languages Signed-off-by: Chris Cormack --- C4/Output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Output.pm b/C4/Output.pm index 592bc2c54e..769081c379 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -94,8 +94,8 @@ sub gettemplate { ($query) or warn "no query in gettemplate"; my $path = C4::Context->preference('intranet_includes') || 'includes'; my $opacstylesheet = C4::Context->preference('opacstylesheet'); + $tmplbase =~ s/\.tmpl$/.tt/; my ( $htdocs, $theme, $lang, $filename ) = _get_template_file( $tmplbase, $interface, $query ); - $filename =~ s/\.tmpl$/.tt/; my $template = C4::Templates->new( $interface, $filename, $tmplbase); my $themelang=( $interface ne 'intranet' ? '/opac-tmpl' : '/intranet-tmpl' ) . "/$theme/$lang";