Closed (fixed)
Project:
Graphviz Filter
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Jun 2008 at 11:02 UTC
Updated:
16 Jun 2008 at 19:11 UTC
I have the module working and rendering graphviz output to the graphviz dir. Unfortunately this module is incompatible with private files, so the images paths are not resolving. The module needs to implement hook_file_download($file).
I have a workaround (very ugly) along the following lines:
function xxx_file_download($file) {
$file = file_create_path($file);
if (strpos($file, 'graphviz')) {
return array(
'Content-Length: '. filesize($file),
);
}
}
Comments
Comment #1
infojunkieThanks! I fixed it in a similar way, not sure what's ugly about it :-)
Comment #2
infojunkieComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.