From: Joey Hess Date: Mon, 30 Aug 2010 22:48:38 +0000 (-0400) Subject: saner return codes for check_can{remove,rename} X-Git-Tag: 3.20100831~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d3d3bbbb17be3b2004e730e2a5d394e23cdff116;p=ikiwiki.git saner return codes for check_can{remove,rename} These return codes are not currently used, but might be later. --- diff --git a/IkiWiki/Plugin/remove.pm b/IkiWiki/Plugin/remove.pm index 4b527993b..1717c8cf3 100644 --- a/IkiWiki/Plugin/remove.pm +++ b/IkiWiki/Plugin/remove.pm @@ -71,6 +71,7 @@ sub check_canremove ($$$) { } } }); + return defined $canremove ? $canremove : 1; } sub formbuilder_setup (@) { diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm index 61d39d4b5..ad5e72645 100644 --- a/IkiWiki/Plugin/rename.pm +++ b/IkiWiki/Plugin/rename.pm @@ -108,6 +108,7 @@ sub check_canrename ($$$$$$) { } } }); + return defined $canrename ? $canrename : 1; } sub rename_form ($$$) {