Skip to content

Commit

Permalink
Use SS_Object instead of Object
Browse files Browse the repository at this point in the history
  • Loading branch information
Zauberfisch committed Mar 12, 2020
1 parent af39861 commit 895bd3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": "^7",
"ext-json": "*",
"silverstripe/framework": "^3.6.4",
"silverstripe/framework": "^3.7",
"zauberfisch/silverstripe-namespace-templates": "^1.0"
}
}
2 changes: 1 addition & 1 deletion src/AbstractDataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function unserialize($serialized) {
$this->fieldsData = isset($data['fieldsData']) ? $data['fieldsData'] : [];
$this->listsData = isset($data['listsData']) ? $data['listsData'] : [];
foreach (\ClassInfo::ancestry(get_called_class()) as $class) {
if (in_array($class, \Config::inst()->get(\Object::class, 'unextendable_classes'))) {
if (in_array($class, \Config::inst()->get(\SS_Object::class, 'unextendable_classes'))) {
continue;
}
$extensions = \Config::inst()->get($class, 'extensions',
Expand Down

0 comments on commit 895bd3d

Please sign in to comment.