Revert Medium object cloning for now (has unexpected side effects) [#2045]

This commit is contained in:
Matias Griese
2018-06-15 09:51:42 +03:00
parent bd21b7f966
commit bf5e742a7f

View File

@@ -52,7 +52,9 @@ abstract class AbstractMedia extends Getters
public function offsetGet($offset)
{
$object = parent::offsetGet($offset);
$object = $object ? clone($object) : null;
// It would be nice if previous image modification would not affect the later ones.
//$object = $object ? clone($object) : null;
return $object;
}