mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
This commit is contained in:
@@ -537,7 +537,7 @@ EOF
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new Exception('graphviz not found (executable path: '.$sDotExecutable.')');
|
throw new Exception('graphviz not found');
|
||||||
}
|
}
|
||||||
return $sHtml;
|
return $sHtml;
|
||||||
}
|
}
|
||||||
@@ -592,7 +592,7 @@ EOF
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new Exception('graphviz not found (executable path: '.$sDotExecutable.')');
|
throw new Exception('graphviz not found');
|
||||||
}
|
}
|
||||||
return $sHtml;
|
return $sHtml;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ EOF;
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
/////////////////////////////////////////////////
|
/////////////////////////////////////////////////
|
||||||
if (! utils::IsModeCLI())
|
|
||||||
|
$sCleanName = strtolower(trim(PHP_SAPI));
|
||||||
|
if ($sCleanName !== 'cli')
|
||||||
{
|
{
|
||||||
echo "Mode CLI only";
|
echo "Mode CLI only";
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user