瀏覽代碼

- 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 年之前
父節點
當前提交
7f8fc52854
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);