Bug 7821 - fix C4::Templates::_current_language
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 30 Mar 2012 17:41:02 +0000 (19:41 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 2 Apr 2012 09:33:17 +0000 (11:33 +0200)
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>

C4/XSLT.pm

index a22f2e5..56ba544 100644 (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/;
     }