N'afficher un warning pour les images webp animées que si un traitement est demandé
This commit is contained in:
parent
47991395af
commit
58a2786a14
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ if (empty($msgErreur)) {
|
|||
/**
|
||||
* PHP ne gère pas les images WebP animée -> ne pas faire de traitements
|
||||
*/
|
||||
if (empty($msgErreur) && isset($_POST['redimImage'], $_POST['angleRotation'], $_POST['dimMiniature']) && HelperImage::isAnimatedWebp($monImage->getPathTemp())) {
|
||||
if (empty($msgErreur) && (!empty($_POST['redimImage']) || !empty($_POST['angleRotation']) || !empty($_POST['dimMiniature'])) && HelperImage::isAnimatedWebp($monImage->getPathTemp())) {
|
||||
$msgWarning .= 'Il n\'est pas possible d\'effectuer de traitement sur les images WEBP animées.<br />';
|
||||
unset($_POST['redimImage'], $_POST['angleRotation'], $_POST['dimMiniature']);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue