From e56a78b1605ea958d844b4efca507074d5050c71 Mon Sep 17 00:00:00 2001 From: Michael Andrewartha Date: Mon, 4 Feb 2013 12:55:29 +0000 Subject: [PATCH] FIX: updateCMSFields not accepting var by reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updateCMSFields should be taking the fields var by reference. @see https://github.com/silverstripe/sapphire/pull/1156 --- code/model/SiteTreeFileExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/SiteTreeFileExtension.php b/code/model/SiteTreeFileExtension.php index 4949ccf8..94794fca 100644 --- a/code/model/SiteTreeFileExtension.php +++ b/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)')),