Rearrange a couple of lines in exportAsHtml to only get the exportPath if we
know it's valid.
This commit is contained in:
parent
304ec5d687
commit
78667e80aa
1 changed files with 3 additions and 1 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue