From 2ad3cb185cce5bedfa7438734a45e8550195ec11 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 Content-Type: text/plain; charset="utf-8" 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. --- C4/XSLT.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index a22f2e5..56ba544 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/; } -- 1.7.7.6