aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/tag.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/tag.pm')
-rw-r--r--IkiWiki/Plugin/tag.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 9e6f417bf..7a918a4e8 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -70,13 +70,13 @@ sub gentag ($) {
my $tagfile = newpagefile(tagpage($tag), $config{default_pageext});
$tagfile=~s/^\///;
- return if (! add_autofile($tagfile, "tag"));
+ add_autofile($tagfile, sub {
+ debug(sprintf(gettext("creating tag page %s"), $tag));
- debug(sprintf(gettext("creating tag page %s"), $tag));
-
- my $template=template("autotag.tmpl");
- $template->param(tag => $tag);
- writefile($tagfile, $config{srcdir}, $template->output);
+ my $template=template("autotag.tmpl");
+ $template->param(tag => $tag);
+ writefile($tagfile, $config{srcdir}, $template->output);
+ });
}
}