mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7617 from open-sausages/pulls/3.6/inject-datadifferencer
Make DataDifferencer injectable
This commit is contained in:
commit
d047c921ed
@ -1100,7 +1100,7 @@ class Versioned extends DataExtension implements TemplateGlobalProvider {
|
||||
$fromRecord = Versioned::get_version($this->owner->class, $this->owner->ID, $from);
|
||||
$toRecord = Versioned::get_version($this->owner->class, $this->owner->ID, $to);
|
||||
|
||||
$diff = new DataDifferencer($fromRecord, $toRecord);
|
||||
$diff = DataDifferencer::create($fromRecord, $toRecord);
|
||||
|
||||
return $diff->diffedData();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user