Explorar o código

- 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 %!s(int64=15) %!d(string=hai) anos
pai
achega
7f8fc52854
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);