Skip to content

Commit

Permalink
Update ExtraPageFieldsExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hailwood authored Nov 14, 2016
1 parent c13e3c6 commit 5a80bc5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/ExtraPageFieldsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ public function updateCMSFields(FieldList $fields)
//Add secondary heading - H2
$fields->insertAfter(TextField::create('SubTitle', 'Secondary Heading'), 'Title');

if (
!Page::config()->get('has_after_update_cms_fields_extension_point') &&
!in_array('HasOnAfterUpdateCMSFieldsExtensionPoint', class_uses($this->owner))
) {
if (!in_array('HasOnAfterUpdateCMSFieldsExtensionPoint', class_uses($this->owner))) {
$this->afterUpdateCMSFields($fields);
}
}
Expand Down

0 comments on commit 5a80bc5

Please sign in to comment.