From 56c70ee33bc24ecdb6f71ec7e91fd8e8bc05ae64 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 14 Sep 2009 16:50:51 +0000 Subject: [PATCH] - New cache management for the lifecycle graphs SVN:code[160] --- trunk/pages/graphviz.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/pages/graphviz.php b/trunk/pages/graphviz.php index 32181c4ce..c04919144 100644 --- a/trunk/pages/graphviz.php +++ b/trunk/pages/graphviz.php @@ -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);