aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Receive.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-23 16:56:40 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-23 16:56:40 -0400
commitad9e443f22a139c71f0cd05885cda3e418f27567 (patch)
tree52d257f9f524fcfe35c819cf67b89171deebb653 /IkiWiki/Receive.pm
parent4669eab596c8d90de0cf9f9d359ad8dd8f48edb5 (diff)
downloadikiwiki-ad9e443f22a139c71f0cd05885cda3e418f27567.tar
ikiwiki-ad9e443f22a139c71f0cd05885cda3e418f27567.tar.gz
check_canattach hooked up
Diffstat (limited to 'IkiWiki/Receive.pm')
-rw-r--r--IkiWiki/Receive.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/IkiWiki/Receive.pm b/IkiWiki/Receive.pm
index 63944bb81..4d437cf78 100644
--- a/IkiWiki/Receive.pm
+++ b/IkiWiki/Receive.pm
@@ -66,11 +66,10 @@ sub test () { #{{{
}
}
else {
- # TODO
- #if (IkiWiki::Plugin::attachment->can("check_canattach") &&
- # IkiWiki::Plugin::attachment::check_canattach($session, $file, $path)) {
- # next;
- #}
+ if (IkiWiki::Plugin::attachment->can("check_canattach") &&
+ IkiWiki::Plugin::attachment::check_canattach($session, $file, $change->{path})) {
+ next;
+ }
}
}
elsif ($change->{action} eq 'remove') {