projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d420a4b
)
add getsetup hook
author
Joey Hess
<joey@kitenet.net>
Wed, 14 Jul 2010 18:47:29 +0000
(14:47 -0400)
committer
Joey Hess
<joey@kitenet.net>
Wed, 14 Jul 2010 18:47:29 +0000
(14:47 -0400)
IkiWiki/Plugin/filecheck.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/filecheck.pm
b/IkiWiki/Plugin/filecheck.pm
index 1549b82db75a9d5164c04b166a3d6d149bdb01dc..d00b6dfd3e0445fe243502929cfa92589e15a77c 100644
(file)
--- a/
IkiWiki/Plugin/filecheck.pm
+++ b/
IkiWiki/Plugin/filecheck.pm
@@
-39,6
+39,19
@@
my %units=( # size in bytes
# -- Joey
);
+sub import {
+ hook(type => "getsetup", id => "filecheck", call => \&getsetup);
+}
+
+sub getsetup () {
+ return
+ plugin => {
+ safe => 1,
+ rebuild => undef,
+ section => "misc",
+ },
+}
+
sub parsesize ($) {
my $size=shift;