Skip to content

Commit

Permalink
Setting WEBPCONVERT_CWEBP_PATH was no longer working. Fixed it. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
rosell-dk committed Dec 9, 2021
1 parent a61943f commit bb29cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Convert/Converters/Cwebp.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,13 +713,13 @@ private function discoverCwebpBinaries()

if (defined('WEBPCONVERT_CWEBP_PATH')) {
$this->logLn('WEBPCONVERT_CWEBP_PATH was defined, so using that path and ignoring any other');
return [constant('WEBPCONVERT_CWEBP_PATH')];
return [[constant('WEBPCONVERT_CWEBP_PATH')],[[], []]];
}
if (!empty(getenv('WEBPCONVERT_CWEBP_PATH'))) {
$this->logLn(
'WEBPCONVERT_CWEBP_PATH environment variable was set, so using that path and ignoring any other'
);
return [getenv('WEBPCONVERT_CWEBP_PATH')];
return [[getenv('WEBPCONVERT_CWEBP_PATH')],[[], []]];
}

if ($this->options['try-cwebp']) {
Expand Down

0 comments on commit bb29cad

Please sign in to comment.