From 78667e80aac81d68a00b6914e06e970a7c488676 Mon Sep 17 00:00:00 2001 From: Chris Nehren Date: Thu, 17 Apr 2008 15:36:51 +0000 Subject: [PATCH] Rearrange a couple of lines in exportAsHtml to only get the exportPath if we know it's valid. --- lib/WebGUI/AssetExportHtml.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/AssetExportHtml.pm b/lib/WebGUI/AssetExportHtml.pm index 60dae89eb..e6c08c981 100644 --- a/lib/WebGUI/AssetExportHtml.pm +++ b/lib/WebGUI/AssetExportHtml.pm @@ -192,7 +192,6 @@ sub exportAsHtml { my $startTime = $session->datetime->time; # before even looking at the parameters, make sure the exportPath is valid. - my $exportPath = $session->config->get('exportPath'); eval { WebGUI::Asset->exportCheckPath($session) }; # something went wrong. we don't really care what at this point. we did @@ -204,6 +203,9 @@ sub exportAsHtml { return ($returnCode, $message); } + # if we're still here, then the exportPath is valid. + my $exportPath = $session->config->get('exportPath'); + # get parameters my $args = shift; my $quiet = $args->{quiet};