summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-03-06 04:16:00 +0000
committerfukachan <fukachan>2003-03-06 04:16:00 +0000
commitedebd5c768c3c9474d41f090ecc2fb024cdc4d32 (patch)
tree677831882ad2e9dc00caa715a995991b6c50d2e2 /fml/lib/FML/Process
parent94fe5f84d136d4ff4f4e200e9cd8cc1ff71a9b12 (diff)
downloadfml8-edebd5c768c3c9474d41f090ecc2fb024cdc4d32.tar.gz
fml8-edebd5c768c3c9474d41f090ecc2fb024cdc4d32.tar.bz2
fml8-edebd5c768c3c9474d41f090ecc2fb024cdc4d32.zip
FNF: use get_as_array_ref()
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/Distribute.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/fml/lib/FML/Process/Distribute.pm b/fml/lib/FML/Process/Distribute.pm
index 909b9e47..c0f88889 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 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: Distribute.pm,v 1.106 2003/03/05 13:54:26 fukachan Exp $
+# $FML: Distribute.pm,v 1.107 2003/03/05 15:07:31 fukachan Exp $
#
package FML::Process::Distribute;
@@ -380,11 +380,10 @@ sub _header_rewrite
my ($curproc, $args) = @_;
my $config = $curproc->{ config };
my $header = $curproc->article_message_header();
- my $rules = $config->{ article_header_rewrite_rules };
+ my $rules = $config->get_as_array_ref('article_header_rewrite_rules');
my $id = $args->{ id };
- # XXX-TODO: use $config->get_as_array_ref()
- for my $rule (split(/\s+/, $rules)) {
+ for my $rule (@$rules) {
Log("_header_rewrite( $rule )") if $config->yes('debug');
if ($header->can($rule)) { # See FML::Header and FML::Header::*