Merge pull request #432 from Greg808/patch-1

Update README.md
This commit is contained in:
Robbie Averill 2019-06-28 08:00:10 +12:00 committed by GitHub
commit 81e6d0fe59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,8 +124,8 @@ Include the current SubsiteID as a hidden field on getCMSFields, or updateCMSFie
:::php :::php
public function getCMSFields() { public function getCMSFields() {
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();
if(class_exists('Subsite')){ if(class_exists(Subsite::class)){
$fields->push(new HiddenField('SubsiteID','SubsiteID', Subsite::currentSubsiteID())); $fields->push(new HiddenField('SubsiteID','SubsiteID', SubsiteState::singleton()->getSubsiteId()));
} }
return $fields; return $fields;
} }