summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-01 19:48:48 +0100
committerintrigeri <intrigeri@boum.org>2009-01-01 19:48:48 +0100
commit41eca80e253ff6c0666a88a3f23e81c180a31f9e (patch)
tree0c9819c965a7812a2f1f9cbc96a0cc3e2966945e
parentd69fdf64455eb343160bca73443e62e550b3c052 (diff)
po: register a (dummy) cansave hook
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r--IkiWiki/Plugin/po.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index c0c7557e4..e16b9f6c2 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -39,6 +39,7 @@ sub import {
hook(type => "rename", id => "po", call => \&renamepages, first => 1);
hook(type => "delete", id => "po", call => \&mydelete);
hook(type => "change", id => "po", call => \&change);
+ hook(type => "cansave", id => "po", call => \&cansave);
hook(type => "canremove", id => "po", call => \&canremove);
hook(type => "canrename", id => "po", call => \&canrename);
hook(type => "editcontent", id => "po", call => \&editcontent);
@@ -422,6 +423,12 @@ sub change(@) {
}
}
+sub cansave ($$$$) {
+ my ($page, $content, $cgi, $session) = (shift, shift, shift, shift);
+
+ debug("po plugin running in cansave")
+}
+
sub canremove ($$$) {
my ($page, $cgi, $session) = (shift, shift, shift);