summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/SendFile.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-03-30 13:48:25 +0000
committerfukachan <fukachan>2002-03-30 13:48:25 +0000
commiteed4d6079b291be8b66e2e4d2dd1bed1cdd6e8e1 (patch)
treed8314ae7b40d97d8ff76e08047caeee204cdd559 /fml/lib/FML/Command/SendFile.pm
parenta6f4e86f12bdc4714d4f7be6adbce43a1590189e (diff)
downloadfml8-eed4d6079b291be8b66e2e4d2dd1bed1cdd6e8e1.tar.gz
fml8-eed4d6079b291be8b66e2e4d2dd1bed1cdd6e8e1.tar.bz2
fml8-eed4d6079b291be8b66e2e4d2dd1bed1cdd6e8e1.zip
FML::Article::filepath() determines the article file path.
Diffstat (limited to 'fml/lib/FML/Command/SendFile.pm')
-rw-r--r--fml/lib/FML/Command/SendFile.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/fml/lib/FML/Command/SendFile.pm b/fml/lib/FML/Command/SendFile.pm
index dfd601d5..6f26b32e 100644
--- a/fml/lib/FML/Command/SendFile.pm
+++ b/fml/lib/FML/Command/SendFile.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: SendFile.pm,v 1.12 2002/02/17 03:13:48 fukachan Exp $
+# $FML: SendFile.pm,v 1.13 2002/02/23 10:22:16 fukachan Exp $
#
package FML::Command::SendFile;
@@ -67,7 +67,9 @@ sub send_article
my $filelist = $self->_is_valid_argument($curproc, $fn);
if (defined $filelist) {
for my $fn (@$filelist) {
- my $file = File::Spec->catfile($spool_dir, $fn);
+ use FML::Article;
+ my $article = new FML::Article $curproc;
+ my $file = $article->filepath($fn);
if (-f $file) {
Log("send back article $fn");
$curproc->reply_message( {