From a35a796b017f7ca94f7c881d1b96e0c3cdccd96e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 6 Oct 2009 11:24:26 +0200 Subject: [PATCH] CVar: sub_module muss vorher konvertiert werden. --- SL/CVar.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/CVar.pm b/SL/CVar.pm index a55cdf439..77d34e67a 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -530,7 +530,8 @@ sub add_custom_variables_to_report { # allow sub_module to be a coderef or a fixed value if (ref $params{sub_module} ne 'CODE') { - $params{sub_module} = sub { "$params{sub_module}" }; + my $sub_module = "$params{sub_module}"; + $params{sub_module} = sub { $sub_module }; } my %cfg_map = map { $_->{id} => $_ } @{ $configs }; -- 2.20.1