Skip to content

Commit 734fbdf

Browse files
authored
Update ShortcodableController.php
1 parent 63a571e commit 734fbdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/ShortcodableController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use SilverStripe\Forms\FieldList;
1414
use SilverStripe\Forms\FormAction;
1515
use SilverStripe\Forms\Form;
16+
use SilverStripe\ORM\DataObject;
1617
use SilverStripe\Security\Permission;
1718

1819
/**
@@ -227,7 +228,7 @@ public function shortcodePlaceHolder($request)
227228
return;
228229
}
229230

230-
if ($id && is_subclass_of($classname, 'DataObject')) {
231+
if ($id && is_subclass_of($classname, DataObject::class)) {
231232
$object = $classname::get()->byID($id);
232233
} else {
233234
$object = singleton($classname);

0 commit comments

Comments
 (0)