| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function updateCMSFields(FieldList $fields) { |
||
| 37 | if(!Config::inst()->get(VersionFeed::class, 'allchanges_enabled')) return; |
||
| 38 | |||
| 39 | $fields->addFieldToTab('Root.Access', |
||
| 40 | FieldGroup::create(new CheckboxField('AllChangesEnabled', $this->owner->fieldLabel('AllChangesEnabled'))) |
||
| 41 | ->setTitle(_t('VersionFeedSiteConfig.ALLCHANGES', 'All page changes')) |
||
| 42 | ->setDescription(_t( |
||
| 43 | 'VersionFeed.Warning', |
||
| 44 | "Publicising the history will also disclose the changes that have at the time been protected " . |
||
| 45 | "from the public view." |
||
| 46 | )) |
||
| 50 |