29 May
2015
29 May
'15
12:33 a.m.
Tomas Cohen Arazi schreef op do 28-05-2015 om 11:01 [-0300]:
The problem is that you need to have the CGI object in the desired context (language is "calculated" from it). Then use:
my $current_language = C4::Languages::getlanguage($query);
if ($current_language == "en")
The other problem is that this isn't correct Perl, it would be: if ($current_language eq "en") -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF