From: Joey Hess Date: Tue, 27 Jan 2009 00:13:15 +0000 (-0500) Subject: hook function names should be the same as the hook name X-Git-Tag: 3.15~219 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d2a7768182cb5d2c1bf11034d379166d73c7a6cc;p=ikiwiki.git hook function names should be the same as the hook name --- 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");