summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fml/lib/FML/Process/CGI.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/CGI.pm b/fml/lib/FML/Process/CGI.pm
index 3fad5b10..a35900f3 100644
--- a/fml/lib/FML/Process/CGI.pm
+++ b/fml/lib/FML/Process/CGI.pm
@@ -56,7 +56,9 @@ sub new
# we should get $ml_name from HTTP.
my $ml_home_prefix = $args->{ ml_home_prefix };
- my $ml_name = param('ml_name') || croak("not get ml_name from HTTP");
+ my $ml_name = param('ml_name') || do {
+ croak("not get ml_name from HTTP") if $args->{ need_ml_name };
+ };
my $ml_home_dir = $ml_home_prefix .'/'. $ml_name;
# fix $args { cf_list, ml_home_dir };