From 08e080bfc3b914cb13ed5c0f1f4031d8276d5672 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Wed, 12 Nov 2008 22:49:19 +0000 Subject: [PATCH] better variable name in macro parser --- lib/WebGUI/Macro.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Macro.pm b/lib/WebGUI/Macro.pm index bdc85f8ef..11ad24078 100644 --- a/lib/WebGUI/Macro.pm +++ b/lib/WebGUI/Macro.pm @@ -123,9 +123,10 @@ sub process { "Too many levels of macro recursion. Stopping."; } else { - my $d = $1; + my $initialText = $1; my $replaceText = _processMacro($session, $2, $3); - defined $replaceText ? $replaceText : $d; # processMacro returns undef on failure, use original text + # _processMacro returns undef on failure, use original text + defined $replaceText ? $replaceText : $initialText; } }ge; }