diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-10-23 16:56:40 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-10-23 16:56:40 -0400 |
commit | ad9e443f22a139c71f0cd05885cda3e418f27567 (patch) | |
tree | 52d257f9f524fcfe35c819cf67b89171deebb653 /IkiWiki/Receive.pm | |
parent | 4669eab596c8d90de0cf9f9d359ad8dd8f48edb5 (diff) |
check_canattach hooked up
Diffstat (limited to 'IkiWiki/Receive.pm')
-rw-r--r-- | IkiWiki/Receive.pm | 9 |
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') { |