aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/recentchangesdiff.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-03 17:20:21 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-03 17:20:21 -0400
commit39195de96e6f705e4a5741254d6d01d14127005c (patch)
treef117af4aa10e4bc65958b4381379bfd4cfa64c4a /IkiWiki/Plugin/recentchangesdiff.pm
parent1230e914b1859e1108033319ade26f30693deccc (diff)
downloadikiwiki-39195de96e6f705e4a5741254d6d01d14127005c.tar
ikiwiki-39195de96e6f705e4a5741254d6d01d14127005c.tar.gz
add plugin safe/rebuild info (part 2 of 3)
(brain.. melting..)
Diffstat (limited to 'IkiWiki/Plugin/recentchangesdiff.pm')
-rw-r--r--IkiWiki/Plugin/recentchangesdiff.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/recentchangesdiff.pm b/IkiWiki/Plugin/recentchangesdiff.pm
index 3942f308b..36acef72e 100644
--- a/IkiWiki/Plugin/recentchangesdiff.pm
+++ b/IkiWiki/Plugin/recentchangesdiff.pm
@@ -8,10 +8,20 @@ use IkiWiki 2.00;
my $maxlines=200;
sub import { #{{{
+ hook(type => "getsetup", id => "recentchangesdiff",
+ call => \&getsetup);
hook(type => "pagetemplate", id => "recentchangesdiff",
call => \&pagetemplate);
} #}}}
+sub getsetup () { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => 1,
+ },
+} #}}}
+
sub pagetemplate (@) { #{{{
my %params=@_;
my $template=$params{template};