summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Riebenbauer <davrieb@liegesta.at>2010-02-02 12:12:23 +0100
committerDavid Riebenbauer <davrieb@liegesta.at>2010-02-02 14:04:39 +0100
commit25741100b0a0d81ae5113dfabe5a1ed84cdf8746 (patch)
treebbf32f10f6ca7877cb56dc05c1691cb8145619bd
parentf58f3e1bec41ccf9316f37b014ce0b373c8e49e1 (diff)
Export add_autofile() for use in Plugins.
-rw-r--r--IkiWiki.pm2
-rw-r--r--IkiWiki/Plugin/tag.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index ad9fb7c79..7d7f430b3 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -23,7 +23,7 @@ our @EXPORT = qw(hook debug error template htmlpage deptype
htmllink readfile writefile pagetype srcfile pagename
displaytime will_render gettext urlto targetpage
add_underlay pagetitle titlepage linkpage newpagefile
- inject add_link
+ inject add_link add_autofile
%config %links %pagestate %wikistate %renderedfiles
%pagesources %destsources);
our $VERSION = 3.00; # plugin interface version, next is ikiwiki version
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 90833fd9c..c0b7feb23 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -79,7 +79,7 @@ sub gentag ($) {
$template->param(tag => $tag);
writefile($tagfile, $config{srcdir}, $template->output);
- IkiWiki::add_autofile("$config{srcdir}/$tagfile");
+ add_autofile("$config{srcdir}/$tagfile");
}
}