mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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'
|
'BackLinkTracking' => 'SiteTree'
|
||||||
);
|
);
|
||||||
|
|
||||||
public function updateCMSFields(FieldList $fields) {
|
public function updateCMSFields(FieldList &$fields) {
|
||||||
$fields->insertAfter(new ReadonlyField('BackLinkCount',
|
$fields->insertAfter(new ReadonlyField('BackLinkCount',
|
||||||
_t('AssetTableField.BACKLINKCOUNT', 'Used on:'),
|
_t('AssetTableField.BACKLINKCOUNT', 'Used on:'),
|
||||||
$this->BackLinkTracking()->Count() . ' ' . _t('AssetTableField.PAGES', 'page(s)')),
|
$this->BackLinkTracking()->Count() . ' ' . _t('AssetTableField.PAGES', 'page(s)')),
|
||||||
|
Loading…
Reference in New Issue
Block a user