Bug 7821 - fix C4::Templates::_current_language

Bareword "C4::Templates::_current_language" not allowed while "strict subs" in use at /home/oleonard/kohaclone/C4/XSLT.pm line 175.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fixes the problem.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Dobrica Pavlinusic 2012-03-30 19:41:02 +02:00 committed by Paul Poulain
parent f9207da8f2
commit 574f46fb19

View file

@ -172,7 +172,7 @@ sub XSLTParse4Display {
}
if ( $xslfilename =~ m/\{langcode\}/ ) {
my $lang = C4::Templates::_current_language;
my $lang = C4::Templates::_current_language();
$xslfilename =~ s/\{langcode\}/$lang/;
}