From bebd82d47b3ad09e4f5a716cf997af609ddd44a4 Mon Sep 17 00:00:00 2001 From: Chris Nehren Date: Tue, 22 Jul 2008 20:07:24 +0000 Subject: [PATCH] $content was used where $output should have been used. Fix the problem and give the variables better names. --- lib/WebGUI/Macro/Widget.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/WebGUI/Macro/Widget.pm b/lib/WebGUI/Macro/Widget.pm index 209c3e0aa..4dd1bcc4a 100755 --- a/lib/WebGUI/Macro/Widget.pm +++ b/lib/WebGUI/Macro/Widget.pm @@ -65,15 +65,15 @@ sub process { $fullUrl = $exportUrl . $storage->getUrl("$assetId.html"); $wgWidgetPath = $exportUrl . $extras . '/wgwidget.js'; $scratch->delete('exportUrl'); - my $content = $asset->view; - WebGUI::Macro::process($session, \$content); + my $viewContent = $asset->view; + WebGUI::Macro::process($session, \$viewContent); my $containerCss = $extras . '/yui/build/container/assets/container.css'; my $containerJs = $extras . '/yui/build/container/container-min.js'; my $yahooDomJs = $extras . '/yui/build/yahoo-dom-event/yahoo-dom-event.js'; my $wgWidgetJs = $extras . '/wgwidget.js'; my $wgWidgetPath = $extras . '/wgwidget.js'; - my $output = < @@ -91,11 +91,11 @@ sub process { - $content + $viewContent OUTPUT - $storage->addFileFromScalar("$assetId.html", $content); + $storage->addFileFromScalar("$assetId.html", $fullHtmlOutput); } else { $fullUrl = "http://" . $conf->get("sitename")->[0] . $asset->getUrl;