Permalink
Browse files

Merge pull request #284 from mandrew/patch-1

FIX: updateCMSFields not accepting var by reference
  • Loading branch information...
2 parents 4269f94 + e56a78b commit 1525684e6870136033d5335b7b44f54f7134cc77 @chillu chillu committed Feb 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/model/SiteTreeFileExtension.php
@@ -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)')),

0 comments on commit 1525684

Please sign in to comment.