Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Oct 20, 2016
1 parent 730efc3 commit d599125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/ComplexField/EzImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d599125

Please sign in to comment.