summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-10-03 22:10:15 +0000
committerfukachan <fukachan>2002-10-03 22:10:15 +0000
commitfb01d4f6c58a858dbe216807ae75d56879d180fc (patch)
tree04c02b2ea26a911004e208879088d86f4b2a5af8 /fml/lib/FML/Process
parentcb56579155d67036a91c0da99b57fe32f5d2a431 (diff)
downloadfml8-fb01d4f6c58a858dbe216807ae75d56879d180fc.tar.gz
fml8-fb01d4f6c58a858dbe216807ae75d56879d180fc.tar.bz2
fml8-fb01d4f6c58a858dbe216807ae75d56879d180fc.zip
enabled to handle order in index.html by $html_archive_index_order_type.
Mail::Message::ToHTML o htmlify_{file,dir}() is changted to normal methods for passing arguments.
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/Distribute.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/fml/lib/FML/Process/Distribute.pm b/fml/lib/FML/Process/Distribute.pm
index 480e28b4..f5aea2c1 100644
--- a/fml/lib/FML/Process/Distribute.pm
+++ b/fml/lib/FML/Process/Distribute.pm
@@ -3,7 +3,7 @@
# Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: Distribute.pm,v 1.97 2002/09/22 14:56:52 fukachan Exp $
+# $FML: Distribute.pm,v 1.98 2002/09/29 12:40:48 fukachan Exp $
#
package FML::Process::Distribute;
@@ -505,6 +505,12 @@ sub htmlify
my $article = $curproc->_build_article_object($args);
my $article_id = $pcb->get('article', 'id');
my $article_file = $article->filepath($article_id);
+ my $index_order = $config->{ html_archive_index_order_type };
+ my $htmlifier_args = {
+ directory => $html_dir,
+ charset => 'euc-jp',
+ index_order => $index_order,
+ };
$curproc->set_umask_as_public();
@@ -518,9 +524,8 @@ sub htmlify
}
eval q{
- &Mail::Message::ToHTML::htmlify_file($article_file, {
- directory => $html_dir,
- });
+ my $obj = new Mail::Message::ToHTML $htmlifier_args;
+ $obj->htmlify_file($article_file, $htmlifier_args);
};
LogError($@) if $@;
}