mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Revert "FIX: updateCMSFields not accepting var by reference"
This reverts commit e56a78b160
.
This commit is contained in:
parent
97fbfd3f12
commit
a0e965b7b4
@ -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