Needs review
Project:
Graphviz Filter
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2012 at 13:07 UTC
Updated:
29 Apr 2012 at 16:27 UTC
function theme_workflow_graph_definition( $wid )
{
require_once( 'Image/GraphViz.php' );
drupal_set_title( t( 'Graph workflow %name', array(
'%name' => workflow_get_name( $wid )
) ) );
$G = _workflow_graph_definition_generate( $wid );
$dot = <<< EOS
/*
* @formats = png
* @imagemap = TRUE
*/
EOS;
$dot .= $G->fetch( 'dot' ); //HERE ****************
return graphviz_filter_process( $dot );
}
All what I have done was simply replace the above bold line with this
$dot .= $G->parse();
That's all folks, spent a day on this!!
Comments
Comment #0.0
bakr commentedtypo
Comment #1
infojunkieThanks for your report.
* What was the error you got?
* What is the version number of Image_GraphViz where you encountered this error?
Comment #2
bakr commentedNo error was reported, the asci dot file was empty, except for the header comment being a png format file.
The test is done on the lastest available zend community server, that was the differentiator.
The image_graphViz has nothing to do with this error, as I tried both the old and trusted as well as the latest library as well as binaries combinations, the same issue was exhibited in both.
I point finger to php baseline instead.
Comment #3
infojunkieCan you please try the latest dev instead? I see that this code has substantially changed there and is already using
Image_GraphViz::parse.Comment #3.0
infojunkietypo