From f9207da8f2693563b8059ba2d5af3e3f3e19ea22 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 29 Mar 2012 17:23:50 +0200 Subject: [PATCH] bug 7821 follow-up: escaping {} in regexp --- C4/XSLT.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index cbdf35b49d..a22f2e545a 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -171,9 +171,9 @@ sub XSLTParse4Display { } } - if ( $xslfilename =~ m/{langcode}/ ) { + if ( $xslfilename =~ m/\{langcode\}/ ) { my $lang = C4::Templates::_current_language; - $xslfilename =~ s/{langcode}/$lang/; + $xslfilename =~ s/\{langcode\}/$lang/; } # grab the XML, run it through our stylesheet, push it out to the browser -- 2.39.5