summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-08-30 18:48:38 -0400
committerJoey Hess <joey@kitenet.net>2010-08-30 18:48:38 -0400
commitd3d3bbbb17be3b2004e730e2a5d394e23cdff116 (patch)
tree9ffc71874ef091d76f9c992fe66db6d9369a23a6
parent89ddd60537abb73af8a739b4e88942cb3fef0d4a (diff)
saner return codes for check_can{remove,rename}
These return codes are not currently used, but might be later.
-rw-r--r--IkiWiki/Plugin/remove.pm1
-rw-r--r--IkiWiki/Plugin/rename.pm1
2 files changed, 2 insertions, 0 deletions
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 ($$$) {