summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-04-25 04:07:32 +0000
committerfukachan <fukachan>2002-04-25 04:07:32 +0000
commit4d93dc875d0d5fd4582ff571dd96f3b18aab03b1 (patch)
tree4b20cae88b82c657e632267968303e4fe0d10f8b
parent002317d828e04f6efc1551a1b53f530e81cf5858 (diff)
downloadfml8-4d93dc875d0d5fd4582ff571dd96f3b18aab03b1.tar.gz
fml8-4d93dc875d0d5fd4582ff571dd96f3b18aab03b1.tar.bz2
fml8-4d93dc875d0d5fd4582ff571dd96f3b18aab03b1.zip
check $use_html_archive value before action
-rw-r--r--fml/lib/FML/Command/Admin/htmlify.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/lib/FML/Command/Admin/htmlify.pm b/fml/lib/FML/Command/Admin/htmlify.pm
index adaac9dc..d9b0c2ee 100644
--- a/fml/lib/FML/Command/Admin/htmlify.pm
+++ b/fml/lib/FML/Command/Admin/htmlify.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: htmlify.pm,v 1.14 2002/04/20 05:24:19 fukachan Exp $
+# $FML: htmlify.pm,v 1.15 2002/04/20 05:40:14 fukachan Exp $
#
package FML::Command::Admin::htmlify;
@@ -62,6 +62,10 @@ sub process
my $dst_dir = $config->{ html_archive_dir };
my $debug = 0;
+ unless ($config->yes('use_html_archive')) {
+ croak("html archive disabled");
+ }
+
print STDERR "htmlify\t$src_dir =>\n\t\t$dst_dir\n" if $debug;
# main converter