Rearrange a couple of lines in exportAsHtml to only get the exportPath if we

know it's valid.
This commit is contained in:
Chris Nehren 2008-04-17 15:36:51 +00:00
parent 304ec5d687
commit 78667e80aa

View file

@ -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};