summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/skeleton.pm.example
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-26 19:13:15 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-26 19:13:15 -0500
commitd2a7768182cb5d2c1bf11034d379166d73c7a6cc (patch)
treeb9d6bfdcea26b211ada2a451bf76dc2f46cdb307 /IkiWiki/Plugin/skeleton.pm.example
parentca9e45c3ba2ad852123aeb8783eed07ed73ce00c (diff)
hook function names should be the same as the hook name
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm.example')
-rw-r--r--IkiWiki/Plugin/skeleton.pm.example4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example
index 5fb391b0d..62eeaf51d 100644
--- a/IkiWiki/Plugin/skeleton.pm.example
+++ b/IkiWiki/Plugin/skeleton.pm.example
@@ -37,7 +37,7 @@ sub import {
hook(type => "formbuilder_setup", id => "skeleton", call => \&formbuilder_setup);
hook(type => "formbuilder", id => "skeleton", call => \&formbuilder);
hook(type => "renamepage", id => "skeleton", call => \&renamepage);
- hook(type => "rename", id => "skeleton", call => \&renamepages);
+ hook(type => "rename", id => "skeleton", call => \&rename);
hook(type => "savestate", id => "skeleton", call => \&savestate);
}
@@ -229,7 +229,7 @@ sub renamepage (@) {
debug("skeleton plugin running in renamepage");
}
-sub renamepages ($$$) {
+sub rename ($$$) {
my ($torename, $cgi, $session) = (shift, shift, shift);
debug("skeleton plugin running in rename");