diff --git a/src/Admin/MultisitesCmsMainExtension.php b/src/Admin/MultisitesCmsMainExtension.php index 93ac7db..522d543 100644 --- a/src/Admin/MultisitesCmsMainExtension.php +++ b/src/Admin/MultisitesCmsMainExtension.php @@ -104,7 +104,7 @@ public function updateEditForm($form) { $classNameField = $form->Fields()->dataFieldByName('ClassName'); if ($classNameField) { $className = $classNameField->Value(); - if ($className === 'Site') + if ($className === Site::class) { $form->Fields()->removeByName(array(SilverStripeNavigator::class)); $form->removeExtraClass('cms-previewable');