From d599125354afe098bca25ec5359b53e19bf3d0ca Mon Sep 17 00:00:00 2001 From: gggeek Date: Thu, 20 Oct 2016 11:32:16 +0100 Subject: [PATCH] Fix previous commit --- Core/ComplexField/EzImage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/ComplexField/EzImage.php b/Core/ComplexField/EzImage.php index 453743bd..dc4b52bb 100644 --- a/Core/ComplexField/EzImage.php +++ b/Core/ComplexField/EzImage.php @@ -31,7 +31,7 @@ public function createValue($fieldValue, array $context = array()) } // default format: path is relative to the 'images' dir - $realFilePath = dirname($context['path']) . '/images/' . $filePath['path']; + $realFilePath = dirname($context['path']) . '/images/' . $filePath; // but in the past, when using a string, this worked as well as an absolute path, so we have to support it as well if (!is_file($realFilePath) && is_file($filePath)) {