Merge remote-tracking branch 'origin/support/2.7' into support/3.0

This commit is contained in:
Eric Espie
2024-05-21 15:07:08 +02:00
2 changed files with 5 additions and 3 deletions

View File

@@ -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;
} }

View File

@@ -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);