[BUGFIX] Fix casting in GalleryProcessing data processor 17/58317/2
authorThomas <info@coding.ms>
Tue, 18 Sep 2018 09:41:29 +0000 (11:41 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 18 Sep 2018 15:08:26 +0000 (17:08 +0200)
Removing the integer casting, so that the cropVariant can also be a string identifier.

Resolves: #86294
Releases: master, 8.7
Change-Id: Id4a80a7b879ddb8539e8cf4b47eeff1fc111029e
Reviewed-on: https://review.typo3.org/58317
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php

index e4d830b..ffa665c 100644 (file)
@@ -266,7 +266,7 @@ class GalleryProcessor implements DataProcessorInterface
         $this->borderEnabled = (bool)$this->getConfigurationValue('borderEnabled', 'imageborder');
         $this->borderWidth = (int)$this->getConfigurationValue('borderWidth');
         $this->borderPadding = (int)$this->getConfigurationValue('borderPadding');
-        $this->cropVariant = (int)$this->getConfigurationValue('cropVariant') ?: 'default';
+        $this->cropVariant = $this->getConfigurationValue('cropVariant') ?: 'default';
 
         $this->determineGalleryPosition();
         $this->determineMaximumGalleryWidth();