diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-01 13:48:07 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-01 13:48:07 -0400 |
commit | d7ca2f8f9be00ac05d86c9a3abdba0c8ef3a3800 (patch) | |
tree | 74e2ea1b46fbc363e5a81ba81c87d675832ff40d /IkiWiki/Plugin | |
parent | 7cd40ea4eb8955765dc3e61dd3edaf08d1bbab48 (diff) |
fix expensive move code path
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/attachment.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index 106660012..a474f6e75 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -72,6 +72,9 @@ sub formbuilder (@) { #{{{ } } + # Needed for fast_file_copy. + require IkiWiki::Render; + # Move the attachment into place. # Try to use a fast rename; fall back to copying. IkiWiki::prep_writefile($filename, $config{srcdir}); |