Bug 5917 : Fixing a bug with switching languages
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
2fc830acff
commit
82f0fee5c8
1 changed files with 1 additions and 1 deletions
|
@ -94,8 +94,8 @@ sub gettemplate {
|
||||||
($query) or warn "no query in gettemplate";
|
($query) or warn "no query in gettemplate";
|
||||||
my $path = C4::Context->preference('intranet_includes') || 'includes';
|
my $path = C4::Context->preference('intranet_includes') || 'includes';
|
||||||
my $opacstylesheet = C4::Context->preference('opacstylesheet');
|
my $opacstylesheet = C4::Context->preference('opacstylesheet');
|
||||||
|
$tmplbase =~ s/\.tmpl$/.tt/;
|
||||||
my ( $htdocs, $theme, $lang, $filename ) = _get_template_file( $tmplbase, $interface, $query );
|
my ( $htdocs, $theme, $lang, $filename ) = _get_template_file( $tmplbase, $interface, $query );
|
||||||
$filename =~ s/\.tmpl$/.tt/;
|
|
||||||
my $template = C4::Templates->new( $interface, $filename, $tmplbase);
|
my $template = C4::Templates->new( $interface, $filename, $tmplbase);
|
||||||
my $themelang=( $interface ne 'intranet' ? '/opac-tmpl' : '/intranet-tmpl' )
|
my $themelang=( $interface ne 'intranet' ? '/opac-tmpl' : '/intranet-tmpl' )
|
||||||
. "/$theme/$lang";
|
. "/$theme/$lang";
|
||||||
|
|
Loading…
Reference in a new issue