[Koha-patches] [PATCH] Bug 7821 - fix C4::Templates::_current_language

Dobrica Pavlinusic dpavlin at rot13.org
Fri Mar 30 19:44:49 CEST 2012


Bareword "C4::Templates::_current_language" not allowed while "strict subs" in use at /home/oleonard/kohaclone/C4/XSLT.pm line 175.
---
 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.2.5



More information about the Koha-patches mailing list