From d2a7768182cb5d2c1bf11034d379166d73c7a6cc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 26 Jan 2009 19:13:15 -0500 Subject: hook function names should be the same as the hook name --- IkiWiki/Plugin/skeleton.pm.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IkiWiki/Plugin/skeleton.pm.example') 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"); -- cgit v1.2.3