From bf5e742a7f2b2b7d02bc0c15814d689022a8db31 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 15 Jun 2018 09:51:42 +0300 Subject: [PATCH] Revert Medium object cloning for now (has unexpected side effects) [#2045] --- system/src/Grav/Common/Page/Medium/AbstractMedia.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Medium/AbstractMedia.php b/system/src/Grav/Common/Page/Medium/AbstractMedia.php index 47dcfee691..4c95938c30 100644 --- a/system/src/Grav/Common/Page/Medium/AbstractMedia.php +++ b/system/src/Grav/Common/Page/Medium/AbstractMedia.php @@ -52,7 +52,9 @@ public function __invoke($filename) 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; }