aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/transient.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-28 18:41:47 -0400
committerJoey Hess <joey@kitenet.net>2012-03-28 18:43:07 -0400
commitd68d25526816d40048ca47ad360304bce162b659 (patch)
tree30230ad338c5e9a4d2574cab844399b2ddf3d075 /IkiWiki/Plugin/transient.pm
parent1916f974722ff509e44c16b4c07c054ef9a11f96 (diff)
downloadikiwiki-d68d25526816d40048ca47ad360304bce162b659.tar
ikiwiki-d68d25526816d40048ca47ad360304bce162b659.tar.gz
Added a "changes" hook. Renamed the "change" hook to "rendered", but
the old hook name is called for now for back-compat.
Diffstat (limited to 'IkiWiki/Plugin/transient.pm')
-rw-r--r--IkiWiki/Plugin/transient.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/transient.pm b/IkiWiki/Plugin/transient.pm
index c0ad5fc11..4ea4317d4 100644
--- a/IkiWiki/Plugin/transient.pm
+++ b/IkiWiki/Plugin/transient.pm
@@ -8,7 +8,7 @@ use IkiWiki 3.00;
sub import {
hook(type => "getsetup", id => "transient", call => \&getsetup);
hook(type => "checkconfig", id => "transient", call => \&checkconfig);
- hook(type => "change", id => "transient", call => \&change);
+ hook(type => "rendered", id => "transient", call => \&rendered);
}
sub getsetup () {
@@ -33,7 +33,7 @@ sub checkconfig () {
}
}
-sub change (@) {
+sub rendered (@) {
foreach my $file (@_) {
# If the corresponding file exists in the transient underlay
# and isn't actually being used, we can get rid of it.