FIX: updateCMSFields not accepting var by reference

updateCMSFields should be taking the fields var by reference.
@see https://github.com/silverstripe/sapphire/pull/1156
This commit is contained in:
Michael Andrewartha 2013-02-04 12:55:29 +00:00
parent 4269f94126
commit e56a78b160

View File

@ -9,7 +9,7 @@ class SiteTreeFileExtension extends DataExtension {
'BackLinkTracking' => 'SiteTree'
);
public function updateCMSFields(FieldList $fields) {
public function updateCMSFields(FieldList &$fields) {
$fields->insertAfter(new ReadonlyField('BackLinkCount',
_t('AssetTableField.BACKLINKCOUNT', 'Used on:'),
$this->BackLinkTracking()->Count() . ' ' . _t('AssetTableField.PAGES', 'page(s)')),