From 78a095aa42acf19b5b28ca402d14e88e6dcf5c3b Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 26 Jan 2009 23:07:19 +0100 Subject: only pass named parameters to the canremove hook Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'IkiWiki/Plugin/po.pm') diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index b579d1f08..363720e1d 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -442,10 +442,10 @@ sub checkcontent (@) { return undef; } -sub canremove ($$$) { - my ($page, $cgi, $session) = (shift, shift, shift); +sub canremove (@) { + my %params = @_; - if (istranslation($page)) { + if (istranslation($params{page})) { return gettext("Can not remove a translation. Removing the master page, ". "though, removes its translations as well."); } -- cgit v1.2.3