From 574f46fb19a933a6ef25d32423785cafc378213c Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 30 Mar 2012 19:41:02 +0200 Subject: [PATCH] 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 Fixes the problem. Signed-off-by: Paul Poulain --- C4/XSLT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index a22f2e545a..56ba544662 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -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/; } -- 2.39.5