diff options
author | intrigeri <intrigeri@boum.org> | 2009-01-27 16:57:52 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2009-01-27 17:08:55 +0100 |
commit | 51badc960d933f6d0670cc76390c332a31b35d63 (patch) | |
tree | 6adcb19e6f07399791ca150a19b0ad7acca89817 /IkiWiki/Plugin/skeleton.pm.example | |
parent | 58481dcdf623aed8ab840ab86e3ac065c4bcb8a1 (diff) |
rename hook: instead of modifying the passed-by-name array, return a copy
This is intended to solve Joey's concerns expressed on
http://ikiwiki.info/todo/need_global_renamepage_hook/, i.e. the need to make it
possible to use this hook from external plugins.
A plugin using this hook still can add/modify/remove elements of the
@torename array.
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin/skeleton.pm.example')
-rw-r--r-- | IkiWiki/Plugin/skeleton.pm.example | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/skeleton.pm.example b/IkiWiki/Plugin/skeleton.pm.example index 62eeaf51d..573510191 100644 --- a/IkiWiki/Plugin/skeleton.pm.example +++ b/IkiWiki/Plugin/skeleton.pm.example @@ -229,8 +229,8 @@ sub renamepage (@) { debug("skeleton plugin running in renamepage"); } -sub rename ($$$) { - my ($torename, $cgi, $session) = (shift, shift, shift); +sub rename (@) { + my %params=@_; debug("skeleton plugin running in rename"); } |