Skip to content

Commit

Permalink
Merge pull request #284 from mandrew/patch-1
Browse files Browse the repository at this point in the history
FIX: updateCMSFields not accepting var by reference
  • Loading branch information
chillu committed Feb 4, 2013
2 parents 4269f94 + e56a78b commit 1525684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/model/SiteTreeFileExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)')),
Expand Down

0 comments on commit 1525684

Please sign in to comment.