Revert "FIX: updateCMSFields not accepting var by reference"

This reverts commit e56a78b160.
This commit is contained in:
Ingo Schommer 2013-02-06 18:59:51 +01:00
parent 97fbfd3f12
commit a0e965b7b4

View File

@ -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)')),