Skip to content
Permalink
Browse files

Define IMG_WEBP constant in version of PHP without it

Merge remote-tracking branch 'origin/pr/14647' into 3.x

* origin/pr/14647:
  Define the IMG_WEBP constant for PHP version where support for WEBP isn't advertised
  • Loading branch information...
opengeek committed Jul 24, 2019
2 parents 9f04f65 + a71c3b9 commit 5597ecdce8734191c72d2696919178ffe540f147
Showing with 6 additions and 0 deletions.
  1. +1 −0 core/docs/changelog.txt
  2. +5 −0 core/src/Revolution/modPhpThumb.php
@@ -4,6 +4,7 @@ development release, and is only shown to give an idea of what's currently in th

MODX Revolution 3.0.0-beta1 (TBD)
====================================
- Define IMG_WEBP constant in version of PHP without it [#14647]
- Setup redesign [#14507]
- Add widget welcome dashboard changes [#14607]
- Media browser reload [#14570]
@@ -37,6 +37,11 @@ public function __construct(modX &$modx, array $config = [])
$this->modx =& $modx;
$this->config = $config;
if (version_compare(PHP_VERSION, '7.0.10', '<')) {
// The constant IMG_WEBP is available as of PHP 7.0.10, respectively.
define('IMG_WEBP', 32);
}
parent::__construct();
}

0 comments on commit 5597ecd

Please sign in to comment.
You can’t perform that action at this time.