mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
4269f94126
commit
e56a78b160
@ -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)')),
|
||||
|
Loading…
Reference in New Issue
Block a user