From e29bdda90ee6297d44dee3b8f1593bbe73c7cc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Wed, 22 Apr 2015 11:38:31 +0200 Subject: [PATCH] Remove need for specifying image alias param in image handler --- Handler/FieldType/Image.php | 8 -------- Resources/doc/CHANGELOG.md | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Handler/FieldType/Image.php b/Handler/FieldType/Image.php index d686751..07e55e9 100644 --- a/Handler/FieldType/Image.php +++ b/Handler/FieldType/Image.php @@ -68,14 +68,6 @@ protected function getFieldValue( Field $field, $tagName, array $params = array( { if ( !$this->fieldHelper->isFieldEmpty( $this->content, $params[0] ) ) { - if ( !isset( $params[1] ) ) - { - throw new InvalidArgumentException( - '$params[1]', - 'Image field type handler requires at least two parameters: field identifier and image variation.' - ); - } - $variationName = !empty( $params[1] ) ? $params[1] : 'opengraph'; try diff --git a/Resources/doc/CHANGELOG.md b/Resources/doc/CHANGELOG.md index f0cde13..b2b2f8f 100644 --- a/Resources/doc/CHANGELOG.md +++ b/Resources/doc/CHANGELOG.md @@ -3,6 +3,7 @@ Netgen Open Graph Bundle changelog ## 1.0.1 (22.04.2015) +* Remove need for specifying image alias in `ezimage` field type handler * Fix issue with being able to add only one handler of the same type ## 1.0 (21.11.2014)