mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #284 from mandrew/patch-1
FIX: updateCMSFields not accepting var by reference
This commit is contained in:
commit
1525684e68
@ -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