]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/attachment.pm
fix expensive move code path
[git.ikiwiki.info.git] / IkiWiki / Plugin / attachment.pm
index 106660012cb31029a62cc8b703b8558655e57440..a474f6e75f58b178b2b049fd1c4e590740a4d6f2 100644 (file)
@@ -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});