diff --git a/src/Controller/ShortcodableController.php b/src/Controller/ShortcodableController.php index 795fa49..f649256 100644 --- a/src/Controller/ShortcodableController.php +++ b/src/Controller/ShortcodableController.php @@ -13,6 +13,7 @@ use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FormAction; use SilverStripe\Forms\Form; +use SilverStripe\ORM\DataObject; use SilverStripe\Security\Permission; /** @@ -227,7 +228,7 @@ public function shortcodePlaceHolder($request) return; } - if ($id && is_subclass_of($classname, 'DataObject')) { + if ($id && is_subclass_of($classname, DataObject::class)) { $object = $classname::get()->byID($id); } else { $object = singleton($classname);