Skip to content

Commit

Permalink
Merge pull request #103 from NikxDa/patch-1
Browse files Browse the repository at this point in the history
Fix Site class reference
  • Loading branch information
Nathan authored Oct 12, 2020
2 parents 984fae8 + dbd5797 commit 13471b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/MultisitesCmsMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 13471b6

Please sign in to comment.