diff --git a/src/Form/Form.php b/src/Form/Form.php index ec7f6bd..a49784e 100644 --- a/src/Form/Form.php +++ b/src/Form/Form.php @@ -9,7 +9,6 @@ use Codefog\HasteBundle\Form\Validator\ValidatorInterface; use Codefog\HasteBundle\Model\DcaRelationsModel; use Codefog\HasteBundle\Util\ArrayPosition; -use Composer\InstalledVersions; use Contao\ArrayUtil; use Contao\Controller; use Contao\DataContainer; @@ -926,7 +925,7 @@ public function fetch(string $fieldName): mixed $widget = $this->widgets[$fieldName]; // Support file uploads in Contao 5 - if (version_compare(InstalledVersions::getVersion('contao/core-bundle'), '5.0', '>=') && $widget instanceof UploadableWidgetInterface) { + if ($widget instanceof UploadableWidgetInterface) { return $widget->value; }