Disabling filecheck should not be possible
[ikiwiki] / doc / bugs / Slow_Filecheck_attachments___34__snails_it_all__34__ / discussion.mdwn
1 Disabling of filecheck is not actually possible because btw it cause the attachment.pm to malfunction and
2 any of pagespec that could contain a *mimetype* condition.
3
4 attachment.pm imports "statically"  filecheck so actually disabling it should be *interdicted* .
5
6 <pre>
7 sub import {
8         add_underlay("attachment");
9         add_underlay("javascript");
10         add_underlay("jquery");
11         hook(type => "getsetup", id => "attachment", call => \&getsetup);
12         hook(type => "checkconfig", id => "attachment", call => \&checkconfig);
13         hook(type => "formbuilder_setup", id => "attachment", call => \&formbuilder_setup);
14         hook(type => "formbuilder", id => "attachment", call => \&formbuilder, last => 1);
15         IkiWiki::loadplugin("filecheck");
16 }
17 </pre>
18