summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process/CGI.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-03-27 16:43:32 +0000
committerfukachan <fukachan>2001-03-27 16:43:32 +0000
commitbde2fc4d3815353c2a2a67615a50e01873dd59cc (patch)
tree963e1bdd9ef802008727177a5455b52eb083abff /fml/lib/FML/Process/CGI.pm
parentc97256e079f66699932db384efe75e6c79336a46 (diff)
downloadfml8-bde2fc4d3815353c2a2a67615a50e01873dd59cc.tar.gz
fml8-bde2fc4d3815353c2a2a67615a50e01873dd59cc.tar.bz2
fml8-bde2fc4d3815353c2a2a67615a50e01873dd59cc.zip
bug fix.
we should not croak() for undefined $ml_name when ml_name is not needed.
Diffstat (limited to 'fml/lib/FML/Process/CGI.pm')
-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 };