Browse Source

- New cache management for the lifecycle graphs

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@160 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 năm trước cách đây
mục cha
commit
7f8fc52854
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      pages/graphviz.php

+ 2 - 2
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);