- New cache management for the lifecycle graphs

SVN:code[160]
This commit is contained in:
Denis Flaven
2009-09-14 16:50:51 +00:00
parent 76af2bb997
commit 56c70ee33b

View File

@@ -65,8 +65,8 @@ function GraphvizLifecycle($sClass)
$sClass = utils::ReadParam('class', 'bizIncidentTicket');
$sDir = dirname(__FILE__);
$sImageFilePath = realpath($sDir."/../images/lifecycle/$sClass.png");
if (!file_exists($sImageFilePath))
$sImageFilePath = $sDir."\\..\\images\\lifecycle\\".$sClass.".png";
if (file_exists("/iTop/Graphviz/bin/dot.exe"))
{
// create the file with Graphviz
$sDotDescription = GraphvizLifecycle($sClass);