mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Ameneded r84151 so that the application order of extensions is the same as it was previously.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@84155 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d5cf940d69
commit
60fde4ad54
@ -418,7 +418,9 @@ abstract class Object {
|
|||||||
|
|
||||||
// merge with existing static vars
|
// merge with existing static vars
|
||||||
$extensions = self::uninherited_static($class, 'extensions');
|
$extensions = self::uninherited_static($class, 'extensions');
|
||||||
$extensions[] = $extension;
|
// We use unshift rather than push so that module extensions are added before built-in ones.
|
||||||
|
// in particular, this ensures that the Versioned rewriting is done last.
|
||||||
|
array_unshift($extensions, $extension);
|
||||||
self::set_static($class, 'extensions', $extensions);
|
self::set_static($class, 'extensions', $extensions);
|
||||||
|
|
||||||
// load statics now for DataObject classes
|
// load statics now for DataObject classes
|
||||||
|
Loading…
Reference in New Issue
Block a user