Skip to content

Commit

Permalink
Don’t show help message if webp was explicitly disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Jul 8, 2019
1 parent 6538233 commit 7a21f88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions core-bundle/src/Resources/contao/dca/tl_image_size.php
Expand Up @@ -380,12 +380,6 @@ public function getFormats()
{
if (!\in_array('webp', StringUtil::trimsplit(',', \Config::get('validImageTypes'))))
{
$GLOBALS['TL_DCA']['tl_image_size']['fields']['formats']['label'] = array
(
$GLOBALS['TL_LANG']['tl_image_size']['formats'][0],
$GLOBALS['TL_LANG']['tl_image_size']['formatsMissingWebp'],
);

return array();
}

Expand Down
Expand Up @@ -56,9 +56,6 @@
<trans-unit id="tl_image_size.formats.1">
<source>Here you can select which image formats shall be converted.</source>
</trans-unit>
<trans-unit id="tl_image_size.formatsMissingWebp">
<source>You can enable WEBP images by adding "webp" to &lt;em&gt;contao.image.valid_extensions&lt;/em&gt;.</source>
</trans-unit>
<trans-unit id="tl_image_size.formatsWebpNotSupported">
<source>WEBP is not supported on your server.</source>
</trans-unit>
Expand Down

0 comments on commit 7a21f88

Please sign in to comment.