protected function ImageAPIOptimizeProcessorBinary::findExecutablePath in Image Optimize (or ImageAPI Optimize) 7.2
2 calls to ImageAPIOptimizeProcessorBinary::findExecutablePath()
- ImageAPIOptimizeProcessorBinary::configForm in plugins/
imageapi_optimize/ ImageAPIOptimizeProcessorBinary.inc - ImageAPIOptimizeProcessorBinary::getFullPathToBinary in plugins/
imageapi_optimize/ ImageAPIOptimizeProcessorBinary.inc
File
- plugins/
imageapi_optimize/ ImageAPIOptimizeProcessorBinary.inc, line 68
Class
Code
protected function findExecutablePath($executable = NULL) {
if (is_null($executable)) {
$executable = $this
->executableName();
}
$output = array();
$return_var = 0;
$path = exec('which ' . escapeshellarg($executable), $output, $return_var);
if ($return_var == 0) {
return $path;
}
}