Lines 1671-1677
sub _process_tt {
Link Here
|
1671 |
my $loops = $params->{loops}; |
1671 |
my $loops = $params->{loops}; |
1672 |
my $objects = $params->{objects} || {}; |
1672 |
my $objects = $params->{objects} || {}; |
1673 |
my $substitute = $params->{substitute} || {}; |
1673 |
my $substitute = $params->{substitute} || {}; |
1674 |
my $lang = defined($params->{lang}) && $params->{lang} ne 'default' ? $params->{lang} : 'en'; |
1674 |
my $lang = 'en'; |
|
|
1675 |
my $interface = C4::Context->interface; |
1676 |
if(defined($params->{lang}) && $params->{lang} ne 'default'){ |
1677 |
$lang = $params->{lang}; |
1678 |
} elsif($interface eq 'intranet' || $interface eq 'opac') { |
1679 |
#use interface language |
1680 |
$lang = C4::Languages::getlanguage(); |
1681 |
} else { |
1682 |
# Pick the first selected syspref language |
1683 |
my @languages = split /,/, C4::Context->preference('language'); |
1684 |
$lang = shift @languages; |
1685 |
} |
1675 |
my ($theme, $availablethemes); |
1686 |
my ($theme, $availablethemes); |
1676 |
|
1687 |
|
1677 |
my $htdocs = C4::Context->config('intrahtdocs'); |
1688 |
my $htdocs = C4::Context->config('intrahtdocs'); |
1678 |
- |
|
|