summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-02-04 07:42:24 +0000
committerfukachan <fukachan>2006-02-04 07:42:24 +0000
commite90ad49eaa65562970ed1c74eaf5cc3e0066cfe7 (patch)
tree5461f975384f024f9365709d18ece045aaf1de66 /fml/lib/FML/Process
parent77d6594e267f820d6ad27d4d88e094f4a08af10d (diff)
downloadfml8-e90ad49eaa65562970ed1c74eaf5cc3e0066cfe7.tar.gz
fml8-e90ad49eaa65562970ed1c74eaf5cc3e0066cfe7.tar.bz2
fml8-e90ad49eaa65562970ed1c74eaf5cc3e0066cfe7.zip
address fault handling
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/Distribute.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Distribute.pm b/fml/lib/FML/Process/Distribute.pm
index 8320b17a..a716fe00 100644
--- a/fml/lib/FML/Process/Distribute.pm
+++ b/fml/lib/FML/Process/Distribute.pm
@@ -3,7 +3,7 @@
# Copyright (C) 2000,2001,2002,2003,2004,2005,2006 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: Distribute.pm,v 1.167 2005/12/19 03:06:02 fukachan Exp $
+# $FML: Distribute.pm,v 1.168 2006/01/09 14:00:54 fukachan Exp $
#
package FML::Process::Distribute;
@@ -138,6 +138,18 @@ sub verify_request
# NOT REACH HERE
}
+ # ADDRESS FAULT HANDLING: used in the case of CREATE-ON-POST.
+ unless ($curproc->is_refused()) {
+ if ($curproc->is_address_fault()) {
+ eval q{
+ use FML::Fault::Address;
+ my $fault = new FML::Fault::Address $curproc;
+ $fault->try_subscribe();
+ };
+ $curproc->logerror($@) if $@;
+ }
+ }
+
$eval = $config->get_hook( 'distribute_verify_request_end_hook' );
$eval .= $config->get_hook( 'article_post_verify_request_end_hook' );
if ($eval) { eval qq{ $eval; }; $curproc->logwarn($@) if $@; }