From 4db6cf60ea1e4180c3f3f487c71c6d4aa737aa8b Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Wed, 16 Oct 2013 10:09:12 +0100 Subject: [PATCH] Bug 11058: fix compilation warning in C4::Record A routine declares two lexical variables named $stylesheet. This patch renames the second to keep code clearer and avoid propagating compile time warnings Signed-off-by: Mark Tompsett Signed-off-by: Kyle M Hall Passes koha-qa.pl, works as advertised! Signed-off-by: Galen Charlton (cherry picked from commit 6bad4db6a76d719ad6ac7fec2d4c7ec87ec8aa95) Signed-off-by: Tomas Cohen Arazi --- C4/Record.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Record.pm b/C4/Record.pm index e727eb40fa..edaa526d82 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -310,9 +310,9 @@ sub _transformWithStylesheet { my $xslt = XML::LibXSLT->new(); my $source = $parser->parse_string($xmlrecord); my $style_doc = $parser->parse_file($xslfile); - my $stylesheet = $xslt->parse_stylesheet($style_doc); - my $results = $stylesheet->transform($source); - my $newxmlrecord = $stylesheet->output_string($results); + my $style_sheet = $xslt->parse_stylesheet($style_doc); + my $results = $style_sheet->transform($source); + my $newxmlrecord = $style_sheet->output_string($results); return ($newxmlrecord); } -- 2.39.5