MINOR Removed faulty detection of "digraph" binary from ModelViewer

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@81584 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-07-10 03:21:48 +00:00
parent b459d489a3
commit 79912f6ba6

View File

@ -26,10 +26,10 @@ class ModelViewer extends Controller {
// check for graphviz dependencies
$returnCode = 0;
$output = array();
exec("which digraph && which neato", $output, $returnCode);
exec("which neato", $output, $returnCode);
if($returnCode != 0) {
user_error(
'You don\'t seem to have the GraphViz library (http://graphviz.org/) or the "digraph" and "neato" command-line utility available',
'You don\'t seem to have the GraphViz library (http://graphviz.org/) and the "neato" command-line utility available',
E_USER_ERROR
);
}