mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 20:37:03 +02:00
Revert Medium object cloning for now (has unexpected side effects) [#2045]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user